photon-otel v3.4.0
New Features
-
Added
setupOptionOtel()for creating an isolated trace and log runtime aftersetupOtel()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, andrun. These use the fixedphoton-developer-traceparentheader, so developer telemetry can cross async and service boundaries without touching the normaltraceparent. -
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_VERSIONso it now reports3.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