Skip to content

Clarify that View-dropped attributes may appear on Exemplars#5073

Merged
reyang merged 5 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/exemplar-filtered-attributes-note
May 8, 2026
Merged

Clarify that View-dropped attributes may appear on Exemplars#5073
reyang merged 5 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/exemplar-filtered-attributes-note

Conversation

@cijothomas

@cijothomas cijothomas commented May 7, 2026

Copy link
Copy Markdown
Member

Adds a non-normative note to the View section of the metrics SDK spec: an attribute key dropped via a View may still be exported on Exemplars as a filtered attribute. Points to the AlwaysOff ExemplarFilter, or a custom ExemplarFilter / ExemplarReservoir, as the mechanism to disable or control Exemplar sampling.

@cijothomas cijothomas added the Skip Changelog Label to skip the changelog check label May 7, 2026
@cijothomas
cijothomas marked this pull request as ready for review May 7, 2026 03:29
@cijothomas
cijothomas requested review from a team as code owners May 7, 2026 03:29
Comment thread specification/metrics/sdk.md Outdated
@cijothomas
cijothomas requested review from Kielek and reyang May 7, 2026 05:12
Comment thread specification/metrics/sdk.md Outdated

@jack-berg jack-berg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the other good option is to scrub attributes in the collector instead of the SDK. Not sure I want to clutter the metrics SDK spec with refs to the collector though.

@cijothomas

Copy link
Copy Markdown
Member Author

I think the other good option is to scrub attributes in the collector instead of the SDK. Not sure I want to clutter the metrics SDK spec with refs to the collector though.

Agree. I also didn't want to make that recommendation/guidance in the sdk spec. Moreover, in some companies/organizations, if the sensitive-value leaves the process ever, it maybe considered a violation, so there'd be good reasons to do it in-proc too.

@cijothomas

Copy link
Copy Markdown
Member Author

@reyang I dismissed your approval and re-requested review, as the content placement has changed since approval. Please re-review!

@cijothomas
cijothomas requested a review from dashpole May 8, 2026 15:38
@cijothomas

Copy link
Copy Markdown
Member Author

Thanks @martincostello @Kielek for raising this issue originally!

@reyang
reyang added this pull request to the merge queue May 8, 2026
Merged via the queue into open-telemetry:main with commit 5d59108 May 8, 2026
9 checks passed
@cijothomas
cijothomas deleted the cijothomas/exemplar-filtered-attributes-note branch May 8, 2026 20:57
pull Bot pushed a commit to CodeWeaver13/opentelemetry-specification that referenced this pull request May 11, 2026
…eraction (open-telemetry#5077)

Adds a row to the spec compliance matrix tracking whether each SDK's
user documentation notes that attributes filtered out by a `View` may
still appear on Exemplars.

Follows the style of the existing `Documentation defines adding
attributes at span creation as preferred` row - tracks user-facing
documentation, not behavioral conformance.

Companion to open-telemetry#5073. .NET docs updated in
open-telemetry/opentelemetry-dotnet#7270.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog Label to skip the changelog check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants