Add immutable noop Observation.Context by jonatan-ivanov · Pull Request #7133 · micrometer-metrics/micrometer (original) (raw)
jonatan-ivanov changed the title
Add immutable empty Observation.Context Add immutable noop Observation.Context
Before this change, the Observation.Context instance used for noop observations were mutable. This can be a source of memory leaks if the user gets a noop Observation and writes the context directly. This change introduces an immutable noop implementation.
See micrometer-metrics#7105 (comment)
inshining pushed a commit to inshining/micrometer that referenced this pull request
Before this change, the Observation.Context instances used for noop observations were mutable. This can be a source of memory leaks if the user gets a noop Observation and writes the context directly. This change introduces an immutable noop implementation.
See micrometer-metrics#7105 (comment)
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
[ Show hidden characters]({{ revealButtonHref }})