We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When metrics are being emitted during function execution using the log_metrics decorator e.g.:
from aws_lambda_powertools.metrics import Metrics metrics = Metrics(service="cart-service") @metrics.log_metrics def lambda_handler(event, context): metrics.add_metric(name="CartUpdated", unit="Count", value=1)
The function runs successfully on cold starts, but throws an error due to missing dimensions on subsequent executions.
What were you trying to accomplish?
The default "service" dimension should be added to every metric created, not just the first one.
The default "service" dimension is only being added to the first metric serialized, causing schema validation errors
The text was updated successfully, but these errors were encountered:
Fixed v0.10.1
Sorry, something went wrong.
No branches or pull requests
When metrics are being emitted during function execution using the log_metrics decorator e.g.:
The function runs successfully on cold starts, but throws an error due to missing dimensions on subsequent executions.
What were you trying to accomplish?
Expected Behavior
The default "service" dimension should be added to every metric created, not just the first one.
Current Behavior
The default "service" dimension is only being added to the first metric serialized, causing schema validation errors
Environment
The text was updated successfully, but these errors were encountered: