Skip to content

photon-otel v3.7.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 20 Aug 20:14
· 4 commits to main since this release

New Features

  • createIsolatedOtel() can now carry standard OTel Baggage through a private header with the new baggageHeader option. This lets isolated runtimes pass tenant/request context without touching the app’s normal baggage, traceparent, or tracestate headers. 🎒

  • Isolated runtimes now expose recordError(error) for explicitly exporting exception type, message, and stack on the active isolated span.

Breaking Changes

  • Isolated withSpan() still marks thrown errors as ERROR and rethrows the original value, but it no longer automatically records exception details. Call runtime.recordError(error) inside the span when you want those details exported.

Improvement

  • Private propagation header validation is stricter: isolated trace and baggage carriers cannot use standard OTel header names, and the baggage header must be different from the trace header.

  • README examples now show private baggage propagation and the new explicit error-recording flow.


Version: 3.7.0