-
Notifications
You must be signed in to change notification settings - Fork 37
Add support to clear custom dimensions and configure flush behavior on dimensions #105
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
Merged
Stephen-Bao
merged 8 commits into
awslabs:master
from
Stephen-Bao:clear-custom-dimensions
Aug 17, 2022
Merged
Add support to clear custom dimensions and configure flush behavior on dimensions #105
Stephen-Bao
merged 8 commits into
awslabs:master
from
Stephen-Bao:clear-custom-dimensions
Aug 17, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paggynie
reviewed
Jul 25, 2022
src/main/java/software/amazon/cloudwatchlogs/emf/model/MetricDirective.java
Outdated
Show resolved
Hide resolved
paggynie
reviewed
Jul 26, 2022
paggynie
reviewed
Jul 26, 2022
src/main/java/software/amazon/cloudwatchlogs/emf/model/MetricDirective.java
Show resolved
Hide resolved
markkuhn
reviewed
Jul 26, 2022
markkuhn
reviewed
Jul 26, 2022
markkuhn
reviewed
Jul 26, 2022
src/main/java/software/amazon/cloudwatchlogs/emf/logger/MetricsLogger.java
Show resolved
Hide resolved
markkuhn
approved these changes
Aug 3, 2022
This was
linked to
issues
Aug 10, 2022
paggynie
approved these changes
Aug 16, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a minor comment that we can mention in README that customer only need to set once for setFlushPreserveDimensions(false)
per metrics logger. right now customer may get confused to set it everytime before flush
… preserve dimensions after each flush
95af752
to
a732313
Compare
paggynie
approved these changes
Aug 16, 2022
Will this feature be added to the other EMF libraries? |
This was referenced Aug 19, 2022
Closed
Closed
Closed
This was referenced Sep 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
#35, #91
Description of changes:
Added a resetDimensions(boolean useDefault) method for clearing custom dimensions; added a boolean field to MetricsLogger to control the behavior of whether to preserve custom dimensions after each flush(); adjusted README to reflect the correct behavior of flush() and new method.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.