AddXRayTraceIdWithSampler not sampling correctly when using TraceIdRatioBasedSampler #645
Open
1 of 2 tasks
Labels
comp:sampler.aws
Things related to OpenTelemetry.Samplers.AWS
Issue with OpenTelemetry.Contrib.Extensions.AWSXRay
List of all OpenTelemetry NuGet
packages and version that you are
using (e.g.
OpenTelemetry 1.0.2
):Runtime version (e.g.
net462
,net48
,netcoreapp3.1
,net6.0
etc. You canfind this information from the
*.csproj
file):Is this a feature request or a bug?
What is the expected behavior?
What do you expect to see?
I expect this test to fail 50% of the time I run it.
What is the actual behavior?
The test always fails. When the probability is set above approx 0.77 the test always passes.
However, when I remove the following line:
I get the expected behavior.
This leads me to suspect that the Sampler doesnt work with well with the rewritten traceids. I stumbled into this behavior as I wanted to sample my traces for a .NET 6.0 project in an AWS environment using XRay.
Please let me know if you need more information or if I overlooked something here.
The text was updated successfully, but these errors were encountered: