opentelemetry-js experimental/v0.301.2 - Lazy gRPC Load and URL Redaction Fixes
opentelemetry-js published experimental/v0.301.2 on November 12, 2026. It is a small fix release with two changes that matter if you run instrumentations with OTLP gRPC exporters: a load order fix for @grpc/grpc-js and credential redaction in instrumented fetch and XHR spans. This post summarizes what changed and why it matters. Full details are on the GitHub release page.
The release notes and downloads live on the GitHub release page.
OTLP gRPC exporter no longer loads grpc-js too early
The main fix targets otlp-grpc-exporter-base. Previously, importing an OTLP gRPC exporter would load @grpc/grpc-js before instrumentations got a chance to wrap net and dns. That broke scenarios where instrumentation of those modules should apply to the exporter’s own connections.
With this release, @grpc/grpc-js is loaded lazily inside createServiceClientConstructor. The exporter can now be imported in any order without interfering with instrumentation. This was fixed in PR #7297.
If you debugged cases where net or dns spans looked inconsistent when gRPC exporters were involved, this change is the likely reason.
Sensitive data redacted from url.full
Two instrumentations had a data leak worth knowing about:
instrumentation-fetchinstrumentation-xml-http-request
Both now redact credentials and sensitive query parameters in the url.full span attribute. URLs with basic auth credentials or tokens in the query string no longer end up verbatim in exported spans. Worth upgrading if you send trace data out of environments where request URLs can contain secrets.
Internal performance change
There is one internal item: otlp-transformer now uses the native Node.js utf8ByteLength function instead of a JS implementation. This is a small performance improvement in the export path. Nothing to configure, and it matters mostly for high volume exporters.
This release is not a prerelease, but note that it lives under the experimental/ tag prefix, so it rides on the experimental SDK line rather than the stable packages.
Where to get it
- Release page: experimental/v0.301.2
- Repository: open-telemetry/opentelemetry-js
- Tag:
experimental/v0.301.2