Traces
List traces and read one with every span, from the browser request to the database calls.
A trace is one request and everything it caused. The browser SDK starts it and sends the W3C traceparent
header; the server SDKs and any OpenTelemetry exporter add the server spans under the same trace id, through
OTLP. The engine turns the browser’s call into the root span, of kind browser. How the parts
are joined is in the semantic conventions.
Traces are kept as long as events (see retention).
The trace object
Fields
-
idstring optionalThe W3C trace id, 32 hex characters.
-
started_attimestamp optional -
duration_msinteger optionalFrom the start of the first span to the end of the last.
-
namestring optionalThe root span’s name, usually
METHOD route.(spans)for a trace that has only steps, with no request record. -
methodstring or null optional -
routestring or null optionalThe server’s API route, with ids replaced, else the path the browser called.
-
status_codeinteger or null optionalThe HTTP status the root answered.
0when the browser got no answer. -
failedboolean optionaltruewhen the browser got no answer or a400or500and above, the server request failed or answered so, a step has statuserror, or the server reported an error in the trace. -
partialboolean optionaltruewhen the request never finished. -
servicesarray of string optionalThe services that ran spans, and the ones they called (
peer.service). The browser isbrowser. -
span_countinteger optional -
dropped_spansinteger optionalSpans the request reported beyond the steps kept, at most 500 per trace. Spans are counted by id, so a repeated batch counts once.
-
session_idstring or null optional -
problem_idstring or null optionalThe problem this trace is an occurrence of.
-
environmentstring optional -
releasestring or null optional
The span object
One step of a trace. The same shape whatever sent it, a Sypnia SDK or an OpenTelemetry exporter.
Fields
-
idstring optional16 hex characters.
-
parent_idstring or null optionalThe span that caused this one.
nullfor the root. -
namestring optionalWhat the step is:
POST /api/checkout,SELECT carts,POST /v1/payments. -
kindstring optionalbrowser: a request as the browser saw it.server: a request handled by a service.db: a database call.http: an outgoing HTTP call.internal: anything else. -
servicestring optionalWhich service ran it (
service.name). -
start_offset_msinteger optionalStart, in milliseconds from the start of the trace.
-
duration_msinteger optional -
statusstring optionalrunningonly in a partial trace. One of:ok,error,running. -
attributesobject optionalDetails, with OpenTelemetry’s names:
http.response.status_code,db.system.name,error.type. Up to 64, values up to 256 characters.
List traces
/v1/traces EngineCloud Traces that started in the time range, without their spans. A trace is failed when any of its spans has status error, which means a call that got no answer, answered 400, answered 500 or above, or threw.
Query parameters
-
projectstring optionalThe project’s id or slug. Needed only with a credential that can see several projects (the root token). With an API token it is ignored unless it names another project, which is
403. -
environmentstring optionalThe environment to read. Any name the project has sent, or
all.Default:
production -
sincestring optionalOnly traces that started after this moment.
Default:
24h -
untilstring optionalEnd of the time range. An ISO 8601 timestamp or a relative value. Defaults to now.
-
routestring, up to 500 characters optionalOnly traces whose root is this API route (
/api/checkout,/api/orders/:id). -
methodstring optionalOnly traces whose root has this HTTP method. One of:
GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS. -
failedboolean optionaltruereturns only failed traces,falseonly successful ones. -
min_duration_msinteger, at least 0 optionalOnly traces at least this long.
-
sessionstring optionalOnly traces of this session.
-
servicestring, up to 80 characters optionalOnly traces with a span from this service (
service.name). -
releasestring optionalOnly traces on this release version.
-
casestring, up to 128 characters optionalOnly traces of this use case: the
sypnia.caseof their first span that carries one (place-order). -
sortstring optionalrecentorslowest.Default:
recent -
limitinteger, 1 to 200 optionalMost items to return.
Default:
50 -
cursorstring optionalThe
next_cursorof the previous page. Keep every other parameter the same.
Request
curl "https://telemetry.api.sypnia.com/v1/traces?route=/api/checkout&failed=true" \
-H "Authorization: Bearer $SYPNIA_API_TOKEN"Response200
{
"data": [
{
"id": "7c2e9a4b1d8f4e6a9b3c5d7e1f2a4b6c",
"started_at": "2026-03-12T10:31:43Z",
"duration_ms": 3870,
"name": "POST /api/checkout",
"method": "POST",
"route": "/api/checkout",
"status_code": 400,
"failed": true,
"partial": false,
"services": [
"browser",
"shop-api",
"payments"
],
"span_count": 4,
"dropped_spans": 0,
"session_id": "8f3a6c1e9b2d4f07a5c3e1b8d6f4a2c0",
"problem_id": "prb_8f3k2m9x4q7w",
"environment": "production",
"release": "4f2a91c"
}
],
"next_cursor": null
}Get a trace
/v1/traces/{trace_id} EngineCloud The trace with every span, ordered by start. Spans form a tree through parent_id; the root has null.
partial is true when the request never finished (it was killed by a timeout): the spans are the ones that
had been reported, and those still running have status: running.
The summary comes from the traces index; the spans are put together from the stored records that hold the
trace, even when its halves arrived in two hours. When every one of those records is past retention, the
answer is 410 expired.
Path parameters
-
trace_idstring requiredThe trace id, 32 hex characters.
Query parameters
-
projectstring optionalThe project’s id or slug. Needed only with a credential that can see several projects (the root token). With an API token it is ignored unless it names another project, which is
403.
Request
curl "https://telemetry.api.sypnia.com/v1/traces/7c2e9a4b1d8f4e6a9b3c5d7e1f2a4b6c" \
-H "Authorization: Bearer $SYPNIA_API_TOKEN"Response200
{
"id": "7c2e9a4b1d8f4e6a9b3c5d7e1f2a4b6c",
"started_at": "2026-03-12T10:31:43Z",
"duration_ms": 3870,
"name": "POST /api/checkout",
"method": "POST",
"route": "/api/checkout",
"status_code": 400,
"failed": true,
"partial": false,
"services": [
"browser",
"shop-api",
"payments"
],
"span_count": 4,
"dropped_spans": 0,
"session_id": "8f3a6c1e9b2d4f07a5c3e1b8d6f4a2c0",
"problem_id": "prb_8f3k2m9x4q7w",
"environment": "production",
"release": "4f2a91c",
"spans": [
{
"id": "0f1e2d3c4b5a6978",
"parent_id": null,
"name": "POST /api/checkout",
"kind": "browser",
"service": "browser",
"start_offset_ms": 0,
"duration_ms": 3870,
"status": "error",
"attributes": {
"http.request.method": "POST",
"http.response.status_code": 400,
"error.type": "amount_required"
}
},
{
"id": "a1b2c3d4e5f60718",
"parent_id": "0f1e2d3c4b5a6978",
"name": "POST /api/checkout",
"kind": "server",
"service": "shop-api",
"start_offset_ms": 14,
"duration_ms": 3842,
"status": "error",
"attributes": {
"http.route": "/api/checkout",
"http.response.status_code": 400
}
},
{
"id": "b2c3d4e5f6071829",
"parent_id": "a1b2c3d4e5f60718",
"name": "SELECT carts",
"kind": "db",
"service": "shop-api",
"start_offset_ms": 21,
"duration_ms": 12,
"status": "ok",
"attributes": {
"db.system.name": "postgresql",
"db.operation.name": "SELECT",
"db.collection.name": "carts"
}
},
{
"id": "c3d4e5f60718293a",
"parent_id": "a1b2c3d4e5f60718",
"name": "POST /v1/payments",
"kind": "http",
"service": "shop-api",
"start_offset_ms": 46,
"duration_ms": 3790,
"status": "error",
"attributes": {
"peer.service": "payments",
"server.address": "api.payments.example",
"http.request.method": "POST",
"http.response.status_code": 400,
"error.type": "amount_required"
}
}
]
}Errors
- 404
not_foundNo trace has this id in the project.
- 410
expiredThe trace’s records are older than the project’s retention.
The errors every endpoint can answer (401, 403, 429, 500, 503) are on Errors, limits, pagination.
Use cases and places
What each use case did in production, and where people went on the navigation map. How the figures are made is in Use cases and places.
List use cases
/v1/cases EngineCloud Every use case that ran in the time range, from the sypnia.case and sypnia.case.outcome attributes of its spans, busiest first. A declared failure such as OutOfStock is counted under outcomes, not under errors: an error is a run that threw, answered 500 or above, or ended with no outcome. Comparing these figures with the map is done by Sypnia Cases, which reads this endpoint.
Query parameters
-
projectstring optionalThe project’s id or slug. Needed only with a credential that can see several projects (the root token). With an API token it is ignored unless it names another project, which is
403. -
environmentstring optionalThe environment to read. Any name the project has sent, or
all.Default:
production -
sincestring optionalOnly runs that started after this moment.
Default:
7d -
untilstring optionalEnd of the time range. An ISO 8601 timestamp or a relative value. Defaults to now.
-
casestring, up to 128 characters optionalOnly this use case.
-
limitinteger, 1 to 200 optionalMost items to return.
Default:
50 -
cursorstring optionalThe
next_cursorof the previous page. Keep every other parameter the same.
Fields of each item
-
casestringThe use case id (sypnia.case). -
runsintegerSpans that carried the case, one per run. -
errorsintegerRuns that threw, answered500or above, or ended with no outcome. -
outcomesobjectRuns per outcome or failure name (sypnia.case.outcome). -
p50_msintegerThe median duration of the span that carries the case. -
p95_msintegerThe 95th percentile of that duration. -
open_problemsintegerOpen problems whose failures happened inside the case. -
first_seenstring (date-time)The first run ever recorded. -
last_seenstring (date-time)The latest run.
Request
curl "https://telemetry.api.sypnia.com/v1/cases?since=7d" \
-H "Authorization: Bearer $SYPNIA_API_TOKEN"Response200
{
"data": [
{
"case": "place-order",
"runs": 312,
"errors": 3,
"outcomes": { "OrderPlaced": 287, "OutOfStock": 22 },
"p50_ms": 420,
"p95_ms": 1310,
"open_problems": 1,
"first_seen": "2026-02-02T09:14:00Z",
"last_seen": "2026-03-12T10:31:43Z"
}
],
"next_cursor": null
}List places
/v1/places EngineCloud Every place of the navigation map that people saw in the time range, from the place of page views and clicks, most visited first, with the moves out of it: a click in this place followed by the next place the person saw. routes_without_place lists the routes people saw that marked no place. Comparing these moves with the navigation tree is done by Sypnia Cases, which reads this endpoint.
Query parameters
-
projectstring optionalThe project’s id or slug. Needed only with a credential that can see several projects (the root token). With an API token it is ignored unless it names another project, which is
403. -
environmentstring optionalThe environment to read. Any name the project has sent, or
all.Default:
production -
sincestring optionalOnly page views and clicks after this moment.
Default:
30d -
untilstring optionalEnd of the time range. An ISO 8601 timestamp or a relative value. Defaults to now.
-
placestring, up to 120 characters optionalOnly this place.
-
limitinteger, 1 to 200 optionalMost items to return.
Default:
50 -
cursorstring optionalThe
next_cursorof the previous page. Keep every other parameter the same.
Fields of each item
-
placestringThe place id (data-sypnia-place). -
viewsintegerPage views that showed the place. -
peopleintegerDifferent sessions that saw it. -
movesarrayPlaces seen right after a click in this place, most common first, up to 20:toandcount. -
rage_clicksintegerRage clicks in the place. -
dead_clicksintegerDead clicks in the place. -
last_seenstring (date-time)The latest page view.
routes_without_place, next to data, lists the routes people saw whose page marked no place, most viewed first, up to 50: route and views. It comes only on the first page.
Request
curl "https://telemetry.api.sypnia.com/v1/places?since=30d" \
-H "Authorization: Bearer $SYPNIA_API_TOKEN"Response200
{
"data": [
{
"place": "shop.cart",
"views": 1840,
"people": 611,
"moves": [
{ "to": "shop.checkout", "count": 702 },
{ "to": "shop.menu", "count": 233 }
],
"rage_clicks": 4,
"dead_clicks": 11,
"last_seen": "2026-03-12T10:31:40Z"
}
],
"routes_without_place": [{ "route": "/promo/:code", "views": 96 }],
"next_cursor": null
}