Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.8 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "dateRange": {
            "description": "Date range for the query. Omit it to search all retained spans for this trace.",
            "properties": {
                "date_from": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Start of the date range. Accepts ISO 8601 timestamps or relative formats: -1h, -6h, -1d, -7d, etc."
                },
                "date_to": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "End of the date range. Same format as date_from. Omit or null for \"now\"."
                }
            },
            "type": "object"
        },
        "excludeAttributes": {
            "default": false,
            "description": "Omit the per-span attributes, resource attributes and events from results to keep payloads compact. Defaults to false.",
            "type": "boolean"
        },
        "offset": {
            "description": "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.",
            "minimum": 0,
            "type": "number"
        },
        "trace_id": {
            "pattern": "^[a-zA-Z0-9]+$",
            "type": "string"
        }
    },
    "required": ["trace_id"],
    "type": "object"
}