Mark GM
Denoβ€’7mo agoβ€’
2 replies
Mark G

How do I propagate OTEL context into a Worker?

First, should I expect that the context is propagated via postMessage to Workers automatically?

I assumed not, so I've tried using propagation.inject/extract with a plain object as the carrier to pass the context in the message of postMessage.

It appears that the carrier doesn't contain any data, when using Deno's native OTEL.

I've tried also using the NodeSDK directly too with Deno OTEL disabled, and the carrier does appear to have a traceparent.

Has anyone else managed to propagate into a Worker?
Does this seem to be a bug in Deno?
Was this page helpful?