get-spans
Retrieve spans from a project using filters such as time range, trace IDs, names, or status codes for analysis.
Instructions
Get spans from a project with filtering criteria.
Spans represent individual operations or units of work within a trace. They contain timing information, attributes, and context about the operation being performed.
Example usage: Get recent spans from project "my-project" Get spans in a time range from project "my-project"
Expected return: Object containing spans array and optional next cursor for pagination. Example: { "spans": [ { "id": "span123", "name": "http_request", "context": { "trace_id": "trace456", "span_id": "span123" }, "start_time": "2024-01-01T12:00:00Z", "end_time": "2024-01-01T12:00:01Z", "attributes": { "http.method": "GET", "http.url": "/api/users" } } ], "nextCursor": "cursor_for_pagination" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_identifier | No | ||
| start_time | No | ||
| end_time | No | ||
| trace_ids | No | ||
| parent_id | No | ||
| names | No | ||
| span_kinds | No | ||
| status_codes | No | ||
| cursor | No | ||
| limit | No | ||
| include_annotations | No |