Skip to content

[SDK] Add ComposableAnnotatingSampler - #4815

Open
ayush-that wants to merge 1 commit into
open-telemetry:mainfrom
ayush-that:composable-annotating
Open

ayush-that wants to merge 1 commit into
open-telemetry:mainfrom
ayush-that:composable-annotating

Conversation

@ayush-that

Copy link
Copy Markdown
Contributor

Part of #4798

Changes

Adds ComposableAnnotatingSampler, the one built-in composable sampler from the spec still missing in C++. It wraps a delegate sampler and adds attributes to the spans the delegate keeps.

File configuration support waits on the schema in open-telemetry/opentelemetry-configuration#596.

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.71%. Comparing base (8e92c48) to head (89fda79).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4815      +/-   ##
==========================================
+ Coverage   86.70%   86.71%   +0.02%     
==========================================
  Files         530      531       +1     
  Lines       21206    21223      +17     
==========================================
+ Hits        18384    18401      +17     
  Misses       2822     2822              
Files with missing lines Coverage Δ
sdk/src/trace/samplers/composable_annotating.cc 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ayush-that
ayush-that marked this pull request as ready for review November 29, 2026 21:29
@ayush-that
ayush-that requested a review from a team as a code owner November 29, 2026 21:29

This branch has not been deployed

No deployments
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.

1 participant