-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
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
Noop If Empty Metrics? #50
Comments
I’m not entirely sure what you’re asking. Are you saying that if no metrics or dimensions have been specified we should not embed the _aws object in the JSON? Or you want to prevent the log from being emitted entirely if there are no metrics? |
Yes, that's what I'm asking. |
Which one? I think we could make dropping the log entirely configurable. Some use |
Agreed, I think just the |
I'm using the following code to have only one dimension.
In some cases for my Lambda there will not be any metrics. However, I have noticed in my log that an empty metric is published. For example:
Should this library check for dimension/metric presence before sending the output?
The text was updated successfully, but these errors were encountered: