-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Add ClearAllDimensions Method #293
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
Conversation
…he global DefaultDimensions and Instead checking if the passed variable is empty if so return so we don't delete the default, other wise set the Default to the passed ones
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #293 +/- ##
===========================================
+ Coverage 69.09% 69.25% +0.16%
===========================================
Files 79 79
Lines 3433 3448 +15
===========================================
+ Hits 2372 2388 +16
+ Misses 1061 1060 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@glynn1211 thank you for submitting a PR. |
…Dimensions from the clear method
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.
LGTM
|
||
var configurations = new Mock<IPowertoolsConfigurations>(); | ||
|
||
var logger = new Metrics( |
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.
Something we need to change later in all Metrics tests, the variable name should be metrics and not logger.
Issue number: #292
Summary
Add a method to allow users to clear the existing Dimensions.
Changes
Added a ClearAllDimensions Method that will clear all dimensions which removes the default set "Service"
Checklist
Please leave checklist items unchecked if they do not apply to your change.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.