Skip to content

photon-otel v3.8.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 11 Sep 00:20
· 2 commits to main since this release

New Features

  • Added opt-in structured fetch request and response recording. You can choose bounded, full, or custom presets to capture Fetch-visible headers, bodies, metadata, and parser-shaped payloads as OTLP logs linked to the fetch span. ✨
  • Added flushFetchRecords() so standalone fetch instrumentation can drain pending request/response records before shutting down exporters.
  • Custom recording parsers can now transform request or response records before export, with timeout handling and configurable raw-or-omit fallback on parser errors.

Bug Fixes

  • Fetch spans now respect init.method when the input is already a Request, so overridden methods are reported correctly.
  • Fetch recording avoids recursive instrumentation when tracing is suppressed, including fetches started inside custom parsers.

Improvement

  • setupOtel().shutdown() now drains pending fetch recordings before shutting down providers.
  • Fetch recording is documented in the README and fetch instrumentation guide, including presets, limits, parser behavior, flushing, and privacy tradeoffs.

Version: 3.8.0