Skip to content

photon-otel v3.6.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 12 Aug 21:22
· 6 commits to main since this release

Breaking Changes

  • setupOptionOtel() was replaced by createIsolatedOtel(). Update the related types from SetupOptionOtelOptions / OptionOtelHandle to IsolatedOtelOptions / IsolatedOtelHandle.
  • Isolated runtimes no longer reuse the main setupOtel() Resource or fixed photon-developer-traceparent header. You now pass serviceName, optional serviceVersion / resourceAttributes, and a private traceparentHeader explicitly.

New Features

  • Added createIsolatedOtel() for fully independent trace + log runtimes. Each call creates its own providers, exporters, Resource, and async context without touching global OTel state. ✨
  • Isolated propagation now supports a caller-defined private trace header, while leaving the standard traceparent header alone.

Bug Fixes

  • PHOTON_OTEL_VERSION now reads from package.json, so it stays aligned with the published package version instead of drifting behind releases.

Improvement

  • Docs and API references now describe the isolated runtime model more clearly, including shutdown, propagation, Resource behavior, and migration from the old option runtime.

Version: 3.6.0