Skip to content
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

No-op implementations for Propagator, Setter, and Getter #118

Merged
merged 1 commit into from Nov 13, 2022

Conversation

ttddyy
Copy link
Contributor

@ttddyy ttddyy commented Nov 12, 2022

While implementing a custom Propagating[Sender|Receiver]TracingObservationHandler, if it doesn't require propagation, such as database access, I found writing noop implementations by myself. Instead, it should be provided from library.

Copy link
Contributor

@marcingrzejszczak marcingrzejszczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Maybe it would be worth describing somewhere when would noop be actually used (e.g. Db instrumentation)

Add no-op implementations for Propagator and its Setter and Getter.
@jonatan-ivanov jonatan-ivanov added the enhancement New feature or request label Nov 13, 2022
@jonatan-ivanov jonatan-ivanov added this to the 1.1.0-M1 milestone Nov 13, 2022
@jonatan-ivanov jonatan-ivanov merged commit 7dae272 into micrometer-metrics:main Nov 13, 2022
@ttddyy ttddyy deleted the noop-propagator branch November 13, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants