question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incoming Context Propagation Ignored

See original GitHub issue

Integrated 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmartancommented, Nov 11, 2021

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.

1reaction
utpillacommented, Jun 29, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found