photon-otel v3.8.0
New Features
- Added opt-in structured fetch request and response recording. You can choose
bounded,full, orcustompresets 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.methodwhen the input is already aRequest, 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