Skip to content

photon-otel v3.1.0

Choose a tag to compare

@photon-action-bot photon-action-bot released this 30 Jun 21:45
· 18 commits to main since this release

New Features

  • Added redactUrl for fetch instrumentation, so you can keep fetch spans while removing secrets from the recorded url.full value. The actual request still uses the original URL. 馃敀

  • Added sanitizeUrl(), a helper that redacts sensitive query values and user:pass@ credentials using the OpenTelemetry REDACTED convention. You can also pass your own query parameter names, like token or api_key.

Improvement

  • Updated the docs and examples to show when to use redactUrl instead of dropping spans with ignore, including the Node behavior where URL redaction uses the globalThis.fetch wrapper instead of native undici instrumentation.

Version: 3.1.0