tracing

Count the exceptions the spans in view hit, by trace, by span and by session, for the span list's error badges.

A caller asks about the id kinds it has, and each kind is a separate lookup.

post/api/projects/{project_id}/tracing/spans/error-counts/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/tracing/spans/error-counts/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

traceIdsstring[]

Hex trace IDs to count exceptions for, matched against the exception's $trace_id property. Case insensitive. At most 200 per request.

spanIdsstring[]

Hex span IDs to count exceptions for, matched against the exception's $span_id property. Only counted within the requested traces, so traceIds is required alongside. At most 200 per request.

sessionIdsstring[]

Session IDs to count exceptions for. The fallback for exceptions that carry no trace ID. At most 200 per request.

dateFromstring date-time required

Start of the window the exceptions must fall in. ISO 8601.

dateTostring date-time required

End of the window the exceptions must fall in. ISO 8601.

Response

Changes

No recorded changes to this operation across all 1 revision of this API.