Get LLM Expensive Traces
get_llm_expensive_tracesIdentify traces with highest LLM token usage to reduce costs and spot inefficient prompts. Filter by time, service, or model for targeted analysis.
Instructions
Find traces with highest LLM token usage.
Useful for cost optimization and identifying inefficient prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of traces to return (default: 10) | |
| end_time | No | End time in ISO 8601 format | |
| min_tokens | No | Minimum token count threshold (only return traces above this) | |
| start_time | No | Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) | |
| service_name | No | Filter by service name | |
| 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 |
|---|---|---|---|
| result | Yes |