Cloudflare Workers adds zero-dependency OpenTelemetry tracing APIs

irvinebroque · x · 2026-09-27

Cloudflare shipped new OpenTelemetry span APIs in the Workers runtime with zero dependencies: tracing.startSpan(name) for standalone spans, tracing.getActiveSpan() to annotate the active (or invocation root) span without passing it around, span.recordException() for error events, and span.setAttributes() for batch attributes. Setters now return the span for chaining, imported via cloudflare:workers.

Original post →

More from Infra

Infra channel →