Skip to content

fix(metrics): return false if it is noop_exemplar_reservoir#2104

Open
xuan-cao-swi wants to merge 1 commit intoopen-telemetry:mainfrom
xuan-cao-swi:fix_noop_reservoir
Open

fix(metrics): return false if it is noop_exemplar_reservoir#2104
xuan-cao-swi wants to merge 1 commit intoopen-telemetry:mainfrom
xuan-cao-swi:fix_noop_reservoir

Conversation

@xuan-cao-swi
Copy link
Copy Markdown
Contributor

Description

The reservoir operation remains active for noop_exemplar_reservoir, even though it doesn't store anything; however, it still slows down the operation.

@xuan-cao-swi xuan-cao-swi changed the title fix(metrics_sdk): return false if it is noop_exemplar_reservoir fix(metrics): return false if it is noop_exemplar_reservoir Apr 22, 2026
Copy link
Copy Markdown
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

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

Yup. And the reset() here for NoopExemplarReservoir fixes a performance hit demonstrated by the benchmarks in #2106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants