Replies: 1 comment 3 replies
-
@verdie-g Would injecting Related: #3290 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an ASP.NET Core app with an endpoint that just writes a message to a Kafka topic. I'm using a
ParentBasedSampler(TraceIdRatioBasedSampler(X))
sampler and I've noticed that whenever the trace is not sampled, the StartActivity will return null for the Kafka span when I would expect a non-recorded activity so I would still be able to propagate the tracing context.When debugging the OTEL SDK, I've noticed this code
opentelemetry-dotnet/src/OpenTelemetry/Trace/TracerProviderSdk.cs
Lines 423 to 472 in 0f9f507
If the
ActivitySamplingResult
isPropagationData
but this is not the root span or the parent span is not a remote one then theActivitySamplingResult
is replaced byNone
.I'm not sure how to propagate the tracing context 🤔
Potentially related issue #2887
Beta Was this translation helpful? Give feedback.
All reactions