Search Traces
search_tracesFilter and retrieve OpenTelemetry traces by service, operation, time, duration, errors, and LLM models. Use simple parameters or advanced generic filters to locate specific traces.
Instructions
Search for OpenTelemetry traces with filters.
Supports both simple parameters and advanced generic filter system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Additional tag filters as key-value pairs | |
| limit | No | Maximum number of traces to return (1-1000, default: 100) | |
| filters | No | Generic filter conditions (advanced) - list of filter objects with: - field: Field name in dotted notation (e.g., "gen_ai.usage.prompt_tokens") - operator: Comparison operator (equals, not_equals, gt, lt, gte, lte, contains, not_contains, starts_with, ends_with, in, not_in, between, exists, not_exists) - value: Single value for most operators - values: List of values for "in", "not_in", "between" operators - value_type: Type of value(s) - "string", "number", or "boolean" | |
| end_time | No | End time in ISO 8601 format | |
| has_error | No | Filter traces with errors | |
| start_time | No | Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) | |
| service_name | No | Filter by service name (use filters for advanced queries) | |
| gen_ai_system | No | Filter by LLM provider (e.g., openai, anthropic) | |
| operation_name | No | Filter by operation/span name | |
| max_duration_ms | No | Maximum trace duration in milliseconds | |
| min_duration_ms | No | Minimum trace duration in milliseconds | |
| gen_ai_request_model | No | Filter by requested model name (e.g., gpt-4) | |
| gen_ai_response_model | No | Filter by actual model used (e.g., gpt-4-0613) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| traces | Yes |