Skip to content

[processor/tailsampling] Deprecate invert sample decisions #39833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 9, 2025

Conversation

portertech
Copy link
Contributor

@portertech portertech commented May 2, 2025

Description

Users can now use the newly added Drop policy type to explicitly drop (not sample) specific traces regardless of other policy decisions. This pull-request deprecates the invert sample decisions.

This pull-request introduces a feature gate/flag, processor.tailsamplingprocessor.disableinvertdecisions, to disable the invert sampling decisions. The gate/flag influences the underlying policy evaluation for simplicity. With the gate/flag enabled, the string, numeric, and boolean filter policies still support invert_match, which continues to flip the decision for the individual policy (only Sampled and NotSampled). Letting invert_match be simple.

Related Issues

@github-actions github-actions bot added the processor/tailsampling Tail sampling processor label May 2, 2025
@portertech portertech marked this pull request as ready for review May 9, 2025 19:30
@portertech portertech requested a review from a team as a code owner May 9, 2025 19:30
@portertech portertech requested a review from mwear May 9, 2025 19:30
@atoulme
Copy link
Contributor

atoulme commented May 9, 2025

Written by codeowner, tests pass, changelog looks good -> merging.

@atoulme atoulme merged commit 089a1d7 into open-telemetry:main May 9, 2025
177 of 178 checks passed
@github-actions github-actions bot added this to the next release milestone May 9, 2025
dragonlord93 pushed a commit to dragonlord93/opentelemetry-collector-contrib that referenced this pull request May 23, 2025
…metry#39833)

#### Description

Users can now use the newly added [Drop policy
type](open-telemetry#39668)
to explicitly drop (not sample) specific traces regardless of other
policy decisions. This pull-request deprecates the invert sample
decisions.
 
This pull-request introduces a feature gate/flag,
`processor.tailsamplingprocessor.disableinvertdecisions`, to disable the
invert sampling decisions. The gate/flag influences the underlying
policy evaluation for simplicity. With the gate/flag enabled, the
string, numeric, and boolean filter policies still support
`invert_match`, which continues to flip the decision for the individual
policy (only `Sampled` and `NotSampled`). Letting `invert_match` be
simple.

#### Related Issues

-
open-telemetry#36673
-
open-telemetry#33656
-
open-telemetry#36795
-
open-telemetry#34296
-
open-telemetry#34085
-
open-telemetry#29637
-
open-telemetry#27049
- Probably more 😅

---------

Signed-off-by: Sean Porter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/tailsampling Tail sampling processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants