photon-otel v3.1.0
New Features
-
Added
redactUrlfor fetch instrumentation, so you can keep fetch spans while removing secrets from the recordedurl.fullvalue. The actual request still uses the original URL. 馃敀 -
Added
sanitizeUrl(), a helper that redacts sensitive query values anduser:pass@credentials using the OpenTelemetryREDACTEDconvention. You can also pass your own query parameter names, liketokenorapi_key.
Improvement
- Updated the docs and examples to show when to use
redactUrlinstead of dropping spans withignore, including the Node behavior where URL redaction uses theglobalThis.fetchwrapper instead of native undici instrumentation.
Version: 3.1.0