DenoDDeno
Powered by
Mark GM
Denoβ€’9mo 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
propagation.inject/extract
with a plain object as the carrier to pass the context in the message of
postMessage
postMessage
.

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

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

Has anyone else managed to propagate into a Worker?
Does this seem to be a bug in Deno?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

OTEL context propagation with queues
svenemtellSsvenemtell / help
4mo ago
How do I patch a std api?
IndustrialIIndustrial / help
4y ago
Issues with a Rust panic running workers and attempting to use `otel`
theANDYMTtheANDYM / help
11mo ago