Incoming Context Propagation Ignored
See original GitHub issueIntegrated OpenTelemetry Tracing in dotnet core 3.1 application as below
services.AddOpenTelemetryTracing((builder) => builder
.AddSource("test")
.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService("test"))
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddZipkinExporter().SetSampler(new AlwaysOnSampler()));
I am able to see the traces/spans in Jaeger UI but calls from other services(java services - Spring Sleuth with Brave) are not recognized. They are not part of single trace. Every call to test service from other service is creating new traceId.
Any thing i need to configure ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
go - Context without cancel propagation
Since context.Context is an interface, you can simply create your own implementation that is never canceled: import ( "context" "time" ) ...
Read more >Trace Propagation and Public API Endpoints in .NET
The easiest way around the propagation issue is to ignore all incoming trace headers. This is fine if your service only has public...
Read more >context: add WithoutCancel · Issue #40221 · golang/go
This is doable today by not propagating the triggering event's context and replacing it instead with a new context obtained from context.
Read more >Trace Propagation & Public API Endpoints in .NET - Honeycomb
The easiest way around the propagation issue is to ignore all incoming trace headers. This is fine if your service only has public...
Read more >Trace Context
Trace context propagation passes along this unique identification. ... The traceparent header represents the incoming request in a tracing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be mentioned somewhere in the readmes or added as an option to the AddAspNetCoreInstrumentation(). I am running services as part of an Istio mesh and was struggling with getting the propagation to work.
@ppathard What kind of propagation do those other services that call your test service inject into their request? By default, W3C TraceContextPropagation is enabled in OTel SDK. If those other services use a different Propagator you’ll have to configure the SDK accordingly.