Browser HTTP request telemetry
@aient/otel-browser 0.7.2 adds stable HTTP attributes and a correlated access log to recorded fetch and XMLHttpRequest spans. Start with the browser quickstart, keeping your existing publishable key, service name and release metadata.
Follow a browser request
Each recorded request produces an access log with the span’s trace and span IDs, available HTTP attributes andhttp.client.request.duration in seconds. Its message contains the method, host, path and status, for example GET api.example.com/orders 200.
Logs include successful requests, so upgrading increases log volume. Request attributes include available values for
http.request.method, url.full, url.path, url.query, server.address, server.port, http.response.status_code and error.type. Available fields depend on the browser and instrumentation.
Control access logs
To stop these request logs, add this option to your existingregisterOTelBrowser configuration:
Review query redaction
The SDK removes URL credentials and replaces configured sensitive query values withREDACTED, preserving keys and other values. For example, ?q=shoes&token=secret becomes ?q=shoes&token=REDACTED. Referrer URL attributes receive the same redaction before spans and request logs are exported.
The browser and server use the same default sensitive keys and case-sensitive replacement rule. See query redaction for the defaults and limits. Setting httpRequestTelemetry.sensitiveQueryParameters replaces the default list; include every key your application needs to protect. Leaving it unset keeps the defaults.
This does not scrub arbitrary attributes, headers or application log messages. Review application-specific sensitive keys before upgrading.