provider tracing POST /api/environments/{environment_id}/tracing/spans/trace/{trace_id}/
@utdk/posthog /api/environments/{environment_id}/tracing/spans/trace/{trace_id}/
environments_tracing_spans_trace_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
trace_id path required
string

Try it

Authentication
Configure credentials for PostHog API
environmentsTracingSpansTraceCreate
POST/api/environments/{environment_id}/tracing/spans/trace/{trace_id}/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

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.environmentsTracingSpansTraceCreate({
  "excludeAttributes": false
})