provider tracing POST /api/projects/{project_id}/tracing/spans/trace/{trace_id}/
@utdk/posthog /api/projects/{project_id}/tracing/spans/trace/{trace_id}/
tracing_spans_trace_create
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
trace_id path required
string

Try it

Authentication
Configure credentials for PostHog API
tracingSpansTraceCreate
POST/api/projects/{project_id}/tracing/spans/trace/{trace_id}/

Parameters

required

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

required

Input

Date range for the query. Defaults to last 24 hours.

Omit the per-span attributes and resource attributes maps from results to keep payloads compact. Defaults to false.

Pagination offset into the trace's spans (ordered by start time ascending). Each page returns up to 2000 spans; pass the response's `nextOffset` to load the next page. Defaults to 0.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.tracingSpansTraceCreate({
  "excludeAttributes": false
})