-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Hash_Seed Probabilistic Sampler Behaviour Broken #35140
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
cc @jmacd |
@navinpai I can help get to the bottom of this. There are a few clues in the text above, and I agree that something is wrong. Would you be able to add verbose detail to the debug export, so we can see the span that is passing through?
I expect to see only one difference between the outputs from v0.102 and v0.103: the The other clue about omitting
Note that defaultMode is HashSeed, so despite that conditional the result of an unset mode is to use HashSeed, with or without an explicit HashSeed value. This tells me that adding and removing |
@navinpai Can you take a look at the Jaeger logs to see if it is rejecting the new TraceState values that a v0.103.0 processor is adding? If I understand your reporting, the trace makes it through the sampler in a v0.103 configuration, so it could be that the appearance of a TraceState field is giving Jaeger trouble. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
processor/probabilisticsampler
What happened?
Description
The probabilistic sampler seems to have a breaking change starting with
v0.103.0
, most likely due to some change in this PR: 9f0a3db.Steps to Reproduce
Tried the same config on
otel-collector-contrib
v0.102.0
andv0.103.0
config:
and the following payload:
With different
TraceId
andSpanId
valuesExpected Result
Since config is same, and
sampling_percentage
is100
all traces should make their way to jaeger.Actual Result
Only traces sent to
v0.102.0
make it tojaeger
. Any traces sent tov0.103.0
do not seem to make it to jaeger.Note: Since I also have a
debug
exporter, I see in both cases, the debug is printed correctlyinfo TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 1}
yet still in 0.102.0, the traces are missing in jaegerIf it matter, the
jaeger
version is1.57.0
Collector version
v0.103.0
Environment information
Environment
K8s 1.30
OpenTelemetry Collector configuration
Log output
Additional context
Workaround
A straightforward workaround is to delete the
hash_seed
key in the config, and then traces come in fromv0.103.0
as well, but there is no documentation about this requirement to remove it. (also, this is the documented configuration forprobabilitic sampler
till not too long back, so I'm sure more people will face the same issue) .The text was updated successfully, but these errors were encountered: