get_llm_slow_traces
Locate long-running LLM traces by duration to pinpoint latency bottlenecks and optimize performance.
Instructions
Find slowest LLM traces by duration.
Useful for performance optimization and identifying latency bottlenecks.
Args: limit: Maximum number of traces to return (default: 10) start_time: Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) end_time: End time in ISO 8601 format min_duration_ms: Minimum duration threshold in milliseconds (only return traces above this) service_name: Filter by service name gen_ai_request_model: Filter by requested model name (e.g., "gpt-4") gen_ai_response_model: Filter by actual model used (e.g., "gpt-4-0613")
Returns: JSON string with top N slowest traces sorted by duration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_time | No | ||
| start_time | No | ||
| service_name | No | ||
| min_duration_ms | No | ||
| gen_ai_request_model | No | ||
| gen_ai_response_model | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |