Overview
Traces provide visibility into your LLM function executions. Every time a function is called via the SDK, a trace is recorded with:- Inputs: The data passed to the function
- Outputs: The result returned by the LLM
- Metadata: Timing, token usage, model information
- Errors: Any errors that occurred during execution
Viewing Traces
Navigate to Traces in the sidebar to see all traces for your organization.Trace List
The trace list shows:| Column | Description |
|---|---|
| Function | The function that was called |
| Status | Success, error, or pending |
| Duration | Execution time in milliseconds |
| Tokens | Input and output token count |
| Created | When the trace was recorded |
Filtering Traces
Filter traces by:- Function: Select a specific function
- Status: Success, error, or all
- Date Range: Filter by time period
- Source: Internal (function calls) or external (SDK tracing)
Searching Traces
Use the search bar to find traces by:- Input content
- Output content
- Error messages
- Trace ID
Trace Details
Click on a trace to view details:Input
The exact input passed to the function:Output
The structured output returned:Execution Details
| Field | Description |
|---|---|
| Model | The LLM model used (e.g., gpt-4o) |
| Duration | Total execution time |
| Input Tokens | Tokens in the prompt |
| Output Tokens | Tokens in the response |
| Total Tokens | Combined token count |
| Function Version | The version of the function used |
Raw Request/Response
View the raw LLM API request and response for debugging:- Messages: The full conversation sent to the LLM
- Response: The raw response from the LLM API
- Headers: Request headers and metadata
External Traces
External traces are captured from SDK tracing integrations (e.g., OpenAI Agents SDK):Viewing External Traces
- Navigate to Traces
- Use the Source filter to select External
- Browse traces from your SDK integrations
External Trace Details
External traces include:- Workflow Name: The name of the workflow or agent
- Group ID: Links related traces together
- Spans: Individual LLM calls within the trace
- Metadata: Custom metadata from your application
Span View
Each external trace may contain multiple spans:Tags
Organize traces with tags:Adding Tags
- Open a trace
- Click Add Tag
- Select an existing tag or create a new one
Filtering by Tag
- Go to the trace list
- Click the tag filter
- Select one or more tags
Managing Tags
Navigate to Settings > Tags to:- Create new tags
- Edit tag names and colors
- Archive unused tags
Exporting Traces
Export traces for analysis:- Filter to the traces you want to export
- Click Export
- Choose format (JSON or CSV)
- Download the file
Best Practices
- Monitor Errors: Regularly check for failed traces to identify issues
- Track Latency: Use duration data to optimize slow functions
- Use Tags: Organize traces by feature, environment, or user
- Review Outputs: Periodically review outputs to ensure quality