Skip to content

Rename ComposableTraceIDRatioBased to ComposableProbability - #5972

Open
shrutimane2409 wants to merge 2 commits into
open-telemetry:mainfrom
shrutimane2409:rename-composable-probability
Open

shrutimane2409 wants to merge 2 commits into
open-telemetry:mainfrom
shrutimane2409:rename-composable-probability

Conversation

@shrutimane2409

Copy link
Copy Markdown
Contributor

Description

The spec renamed the ComposableTraceIDRatioBased sampler to ComposableProbability, so this renames the class, the composable_traceid_ratio_based() function to composable_probability(), and the module to match. Declarative configuration already calls this sampler probability, so the names now line up everywhere.

Since this is all under _sampling_experimental, I didn't keep the old names as aliases.

This covers item 2 from #5950 (item 4 is in #5966).

Part of #5950

Type of change

  • Breaking change

Checklist:

  • I am a human and not a bot
  • I have run tox -e precommit
  • I have run tox -e typecheck
  • I have run the relevant tests and linting tox environments

The spec renamed this composable sampler to ComposableProbability. Rename
the class, the composable_traceid_ratio_based() factory to
composable_probability() and the module to match. Declarative
configuration already calls it "probability", so its call site now uses
the same name.

Part of open-telemetry#5950
@shrutimane2409
shrutimane2409 requested a review from a team as a code owner November 26, 2026 13:46
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-11-26 13:52 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with the author? Comment /dashboard route:author to route it back.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

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

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant