opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

How to propagate span context from one autoinstrumented span into next. E.g. express `instrumentation-http` into `instrumentation-nestjs-core`?

Open AkselAllas opened this issue 1 year ago • 0 comments
trafficstars

What happened?

Steps to Reproduce

I am using trace.getActiveSpan() and propagating context into child spans. But this isn't working for when autoinstrumented context switches.

I have this scenario: image

Expected Result

I would need to be able to propagate context. Is baggage the only option here?

Actual Result

How can I propagate span context from one autoinstrumented span into next. E.g. express instrumentation-http into instrumentation-nestjs-core?

OpenTelemetry Setup Code

No response

package.json

No response

Relevant log output

No response

AkselAllas avatar May 13 '24 19:05 AkselAllas