Skip to content

photon-otel v3.4.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 08 Aug 20:36
· 10 commits to main since this release
f837922

New Features

  • Added setupOptionOtel() for creating an isolated trace and log runtime after setupOtel() is active. It sends to its own OTLP endpoint, reuses the main service resource, and does not replace globals, patch fetch, or mix with the main active span. ✨

  • Added option-runtime propagation helpers: capture, inject, extract, and run. These use the fixed photon-developer-traceparent header, so developer telemetry can cross async and service boundaries without touching the normal traceparent.

  • Added explicit option-runtime logging and withSpan() APIs for developer logs/spans. Errors are recorded on spans and rethrown unchanged, while telemetry emission failures stay fail-open for business code.

Bug Fixes

  • Fixed PHOTON_OTEL_VERSION so it now reports 3.4.0, matching the package version.

Improvement

  • Added docs and tests for the isolated option runtime, covering setup requirements, shutdown behavior, trace isolation, log correlation, propagation, invalid headers, and failure handling.

Version: 3.4.0