Skip to content

feat: Add custom labels to exemplars#2191

Merged
zeitlinger merged 2 commits into
mainfrom
exemplar-labels-clean
Jun 8, 2026
Merged

feat: Add custom labels to exemplars#2191
zeitlinger merged 2 commits into
mainfrom
exemplar-labels-clean

Conversation

@jaydeluca
Copy link
Copy Markdown
Collaborator

Resolves #1994

@jaydeluca jaydeluca force-pushed the exemplar-labels-clean branch from c98d047 to 4220f82 Compare June 4, 2026 19:38
@jaydeluca jaydeluca marked this pull request as ready for review June 4, 2026 19:50
Copy link
Copy Markdown
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

One review item: the new exemplar label suppliers are documented as applying to automatically-sampled exemplars, but the current implementation also injects them into custom exemplars via updateCustomExemplar(). That changes the semantics of observeWithExemplar/incWithExemplar, which no longer remain fully caller-controlled when a global supplier is installed. Please avoid merging the extra supplier labels on the custom-exemplar path (while keeping trace/span enrichment if desired).

jaydeluca and others added 2 commits June 5, 2026 09:58
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
@jaydeluca jaydeluca force-pushed the exemplar-labels-clean branch from efbcfb8 to 0e8dfb6 Compare June 5, 2026 13:58
@jaydeluca jaydeluca requested a review from zeitlinger June 8, 2026 12:49
@zeitlinger zeitlinger merged commit fd1f3e8 into main Jun 8, 2026
21 checks passed
@zeitlinger zeitlinger deleted the exemplar-labels-clean branch June 8, 2026 14:58
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.

Is it possible to add a custom metadata identifier when using Exemplars?

2 participants