A browser capture shows that POST /api/checkout failed with a 500. Backend telemetry shows why: the span that threw, its exception, and the log lines around it. Laneshot links the two through distributed-trace IDs, so a developer gets the whole story from one page, and so do AI agents through MCP.

How it works
- Propagation. While a recording runs, the extension adds trace headers to every request the page makes to its own origin, unless the request already carries its own.
- Correlation. For each captured request, Laneshot records the trace ID it finds in the request or response headers.
- Collection. When someone opens the Backend tab, Laneshot asks every backend connection of the project for those trace IDs, within the recording's time window plus five minutes on each side.
- Snapshot. The results are stored with the trace, so they stay available after your observability tool's own retention expires.
Headers added while recording
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
tracestate: laneshot=1
sentry-trace: 4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-1
traceparentis the W3C Trace Context header, understood by OpenTelemetry and most APM agents.tracestate: laneshot=1marks the request as captured by Laneshot. The OTLP receiver and the Collector filter below rely on it.sentry-tracecarries the same IDs for Sentry SDKs that don't read W3C headers.
Headers are only added to same-origin requests. Adding them to other origins would trigger CORS preflights, and could leak IDs to third parties. If your API lives on another origin, have your frontend propagate trace context itself; Laneshot still reads the IDs from the headers.
Where trace IDs are read from
For each request, Laneshot reads the first match from the response headers, then the request headers:
| Header | Format |
|---|---|
traceresponse, traceparent |
W3C: version-traceid-spanid-flags |
sentry-trace |
traceid-spanid-sampled |
x-amzn-trace-id |
AWS X-Ray: Root=1-…;Parent=… |
x-cloud-trace-context |
Google Cloud: traceid/spanid;o=1 |
x-trace-id |
The raw ID |
x-request-id, x-correlation-id |
Used only when no trace header exists |
In the Network tab, requests with an ID show Show backend, which opens the Backend tab on that trace. Up to 50 distinct trace IDs per capture are used.
Add a backend connection
Project admins manage connections in the project's Settings, Backend tab.
- Select Connect a backend.
- Choose a connector and fill in its fields.
- Select Test and connect. Laneshot tests the settings before saving them.

A project can have several connections. If one fails, the others still return their data, and the failing source shows its error in the Backend tab.
OpenTelemetry (built in)
Your services send traces and logs straight to Laneshot, with no other tool. This connector has no fields; add it, then create an ingest key.
Sentry (beta)
| Field | Value |
|---|---|
| Sentry address | Defaults to https://sentry.io. Use your region, such as https://de.sentry.io, or your self-hosted address. |
| Organization slug | Such as acme. |
| Auth token | Needs the org:read and event:read scopes. |
Returns errors and performance spans Sentry recorded for the same trace IDs, with a link to each event in Sentry.
Grafana Tempo and Loki
| Field | Value |
|---|---|
| Tempo address | Such as https://tempo.acme.com. |
| Loki address (optional) | Such as https://loki.acme.com. |
| Loki query | LogQL, where {traceId} is replaced for each request. Defaults to {service_name=~".+"} |= "{traceId}". |
| Bearer token (optional) | Sent to both Tempo and Loki. |
| Basic auth (optional) | user:password, for Grafana Cloud or a reverse proxy. |
| Grafana link (optional) | Such as https://grafana.acme.com/explore?traceId={traceId}, for an Open in Grafana link. |
Datadog (beta)
| Field | Value |
|---|---|
| Site | Defaults to datadoghq.com. Use datadoghq.eu, us5.datadoghq.com, or your site. |
| API key | A Datadog API key. |
| Application key | Needs the apm_read and logs_read_data scopes. |
Returns APM spans and logs for the same requests, with an Open in Datadog link.
Jaeger
| Field | Value |
|---|---|
| Jaeger query address | Such as https://jaeger.acme.com. |
| Bearer token (optional) | For a protected query service. |
Reads traces by ID from Jaeger 2.
Custom HTTP endpoint
For tools without a connector, or for your own aggregation service. Laneshot calls your endpoint once per trace ID.
| Field | Value |
|---|---|
| Address | Such as https://ops.acme.com/telemetry?trace={traceId}&from={from}&to={to}. {from} and {to} are epoch milliseconds. |
| Headers (JSON, optional) | Such as {"Authorization": "Bearer …"}. Stored encrypted. |
Your endpoint answers with this JSON. Every array is optional:
{
"spans": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"spanId": "00f067aa0ba902b7",
"name": "POST /api/checkout",
"service": "payments",
"startMs": 1731234567890,
"durationMs": 182,
"error": true,
"statusMessage": "card_declined",
"attributes": { "http.status_code": "402" }
}
],
"logs": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"timeMs": 1731234567950,
"level": "error",
"message": "Stripe returned 402",
"service": "payments"
}
],
"errors": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"timeMs": 1731234567951,
"type": "CardError",
"message": "Your card was declined.",
"url": "https://ops.acme.com/errors/9142"
}
],
"links": [{ "label": "Open in Kibana", "url": "https://kibana.acme.com/…" }]
}
Link to another tool
Adds a link per request to Honeycomb, New Relic, Elastic, or any tool that opens a trace by ID, without fetching data.
| Field | Value |
|---|---|
| Link text | Such as Open in Honeycomb. |
| Address | Such as https://ui.honeycomb.io/acme/trace?trace_id={traceId}. |
Send OpenTelemetry data to Laneshot
The built-in receiver accepts OTLP over HTTP with JSON encoding:
| Endpoint | Data |
|---|---|
<APP_URL>/api/otlp/v1/traces |
Spans |
<APP_URL>/api/otlp/v1/logs |
Log records |
Requests authenticate with an ingest key, sent as Authorization: Bearer <key> or x-laneshot-key: <key>. Create keys in the project's Backend tab under OpenTelemetry ingest. A key starts with lsh_ingest_ and is shown once; Laneshot stores only its hash. Last used tells you whether a service is sending data.
With an OpenTelemetry SDK
OTEL_EXPORTER_OTLP_ENDPOINT=https://laneshot.acme.com/api/otlp
OTEL_EXPORTER_OTLP_PROTOCOL=http/json
OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer lsh_ingest_…
Protobuf isn't accepted: set the protocol to http/json. Gzip-compressed bodies are accepted, up to 10 MB once inflated.
With the OpenTelemetry Collector
Most teams already run a Collector. Add a second pipeline that forwards only the requests Laneshot captured:
exporters:
otlphttp/laneshot:
endpoint: https://laneshot.acme.com/api/otlp
encoding: json
headers:
authorization: Bearer lsh_ingest_…
processors:
# Forward only requests captured by Laneshot.
filter/laneshot:
traces:
span:
- 'not IsMatch(trace_state, "laneshot=1")'
service:
pipelines:
traces/laneshot:
receivers: [otlp]
processors: [filter/laneshot]
exporters: [otlphttp/laneshot]
What the receiver keeps
Laneshot isn't a general-purpose telemetry store:
- Spans are kept only for traces that carry
laneshot=1in their trace state on at least one span, or that Laneshot already knows. - Logs are kept only for trace IDs with captured spans.
- Received data is deleted after 72 hours. By then, traces have copied what they need into their snapshot.
Backend data and public links
Backend telemetry can reveal internal service names, SQL, or hostnames, so it's left out of public links unless you include it:
- Include backend data in new public links by default, in the project's Backend tab, sets the default.
- Each public link can still be created with or without it, with Include backend data in the Create a public link dialog.
Members of the project always see backend data. Public viewers, the public context.md report, and the public MCP server see it only when the link includes it. See Sharing and privacy.
Attributes whose names look like credentials, such as authorization or api_key, are redacted before a snapshot is stored. Snapshots keep at most 2,000 spans, 1,000 logs, and 200 errors per source.
Troubleshooting
| Symptom | What to check |
|---|---|
| "No request in this capture carried a trace ID." | The requests went to another origin, or the capture wasn't recorded with the extension. Check the Network tab for trace headers. |
| The Backend tab is empty for a request | Your backend didn't continue the incoming traceparent. Check that your OpenTelemetry SDK's W3C propagator is enabled. |
415 from the OTLP receiver |
The exporter sends protobuf. Set OTEL_EXPORTER_OTLP_PROTOCOL=http/json. |
401 from the OTLP receiver |
The ingest key is missing, revoked, or sent without Bearer. |
| A source shows "The credentials were rejected." | The token lost access or expired. Remove the connection and add it again. |