Common Website Monitoring Issues
This guide addresses common questions and troubleshooting scenarios when using the Dash0 Web SDK. It covers why web vitals may not appear for every page view, how to diagnose missing trace links between frontend requests and backend services, how to configure Content-Security-Policy headers to allow telemetry ingestion, why a session has no replay or no rage clicks, and why a replay can look different from what the user saw.
Why are web vitals only measured for some page views?
Multiple factors limit web vital metric reporting frequency. Not every page view will have measurements for all web vital types. Sessions with high ratios of page transitions to page loads are particularly affected.
Limiting factors:
- Web vital instrumentation only reports metric value changes
- LCP measurements are reported only when the largest contentful element changes
- INP measurements require user interaction
- INP and CLS measurements are not performed when users have backgrounded pages
Why are my HTTP requests not linked to traces?
When HTTP request web events are not linked to expected traces, follow these troubleshooting steps:
- Verify if the trace has been recorded
- Check in Tracing if traces with
dash0.trace.origin.type=WEBexist - If yes:
- Review sampling strategy; Telemetry could have been dropped through the pipeline.
- Not all request events have a corresponding trace
- If no:
- Make sure the target service is instrumented or continue reading
- Check in Tracing if traces with
- For cross-origin requests, verify the trace propagation is correctly configured. By default the Dash0 SDK only transmits trace context information for requests targeting the same origin your website is being served from. If the request in question is a cross-origin request you will need to specifically configure the SDK to allow trace context propagation to this origin. See the Dash0 SDK documentation for details on how to configure this correctly.
- Verify the context propagators are configured correctly for the target service. The Dash0 SDK currently supports W3C Trace Context and AWS X-Ray as the trace propagation mechanisms. The target service needs to support one of them to link spans. See the Dash0 SDK documentation for details on how to configure this correctly.
I'm seeing Content-Security-Policy errors. What do I need to configure?
Websites with strict Content-Security-Policy directives must allow the ingest endpoint selected during SDK initialization via the connect-src directive.
Example:
connect-src 'self' ingress.eu-central-1.aws.dash0.com ingress.eu-west-1.aws.dash0.com ingress.us-east-1.aws.dash0.com ingress.us-west-2.aws.dash0.com ingress.europe-west4.gcp.dash0.comWhy does a session have no replay?
Only sessions the Web SDK recorded have a replay. Check the following:
- The session replay recorder is loaded. See Web SDK Setup: Session Replay.
- If you limit which instrumentations the SDK enables, session replay is one of them.
- The session was picked for recording. If you lowered the session replay sampling rate, the SDK records only that share of sessions.
- The page is not on the SDK's list of ignored URLs.
- Recording started. If your website waits for consent before it starts recording, sessions where the user did not agree have no replay.
- The browser is recent enough. Very old browsers skip recording, and the rest of the SDK keeps working.
See the Web SDK session replay configuration for these settings.
Why does a session have no rage clicks?
The Web SDK looks for rage clicks only while it records a session replay. Check the following:
- The session has a replay. See Why does a session have no replay?.
- If you limit which instrumentations the SDK enables, frustration signals are one of them.
- The clicks meet the detection thresholds. By default, a rage click is three or more clicks on the same spot, each within a second of the one before.
See the Web SDK frustration signals configuration to change the thresholds.
Why does a replay look different from what the user saw?
The replay loads files such as images and fonts from your website. Files behind a login, or files that changed since the session, cannot load, so the replay can look unstyled. Canvas content, such as charts, does not play back in the replay, even when canvas recording is turned on. Content in iframes from another origin, such as payment forms, cannot be recorded.
Further Reading
- Watch a Session Replay. Find recorded sessions and play them back next to their telemetry.
- Set Up the Web SDK. Installation and configuration instructions for the Dash0 Web SDK, including endpoint URLs and authentication token setup.
- Understand Web Vitals. Explains why web vitals may not be measured for every page view and how the metrics are calculated.
- Correlate Sessions with Backend Traces. Shows how to drill down from frontend HTTP requests into full backend traces to debug performance issues.
- Track HTTP Requests. Covers how HTTP requests are traced and linked to backend services, including cross-origin configuration requirements.
- Proxy the Ingestion Endpoint. Describes how to route telemetry through your own infrastructure, including CORS configuration and authentication handling.
Last updated: