View & Manage Traces
Filter your traces and export them for further analysis
After tracing your application, the next step is to look at your data to understand system behavior and identify issues. Because there can be a lot of spans to navigate, it’s helpful to query traces by specific attributes or narrow results to a particular time range to focus your investigation. You can also export trace data for further analysis outside the platform.
Query Traces
Querying traces allows you to focus your analysis on specific system behaviors. Start by defining your goals, such as identifying performance bottlenecks or isolating spans that contain errors.
Construct Queries
To start querying your traces, click on the filter bar. You can type, select, or use Alyx to help you craft filters that express your question clearly.
✨ You can use AI Search to automatically generate query filters!
Example: "Filter for LLM spans"
Saved Filters
When you find yourself using the same filters repeatedly — for example, to track specific spans or error types — you can save them. Saved filters act like shortcuts to your go-to queries, so you can eliminate the need to recreate complex filter queries repeatedly.
To save a filter for future use:
Configure your desired filter using the query filter syntax
Click the Save button in the filter interface
Choose one of the following options:
Add a new saved filter view: Create a completely new saved filter with a custom name
Update an existing filter: Modify an existing saved filter with your current configuration
You can save and pin up to 7 filters at a time for quick access. (Note: Filters cannot currently be deleted from the pinned view)
Time Filters
Time filters let you focus analysis on the period that matters. The Time Selector makes it quick to define that window. Choose from presets, use the calendar picker, or type a custom range directly.
Typing Custom Range: You can define exact time windows by typing directly into the selector. Supported formats:
Dates:
4/1or2025-04-01Date and time:
4/1 3:00 AMor2025-04-01 15:00Ranges:
4/1 - 4/6or4/1 3:00 AM - 4/6 5:00 PM
Relative Time Shortcuts: For rolling time windows, use shorthand notation in the selector.
15m,15min,15minutes→ last 15 minutes1 h,1 hr,1 hour,1 hours→ last hour10d,10day,10days→ last 10 days
Time Zone Support: You can set your preferred timezone, and the selection persists across sessions to ensure data is always shown in your local context.
Export Traces
It can be helpful to export the trace data from Arize for a variety of reasons. Common use cases include:
Testing out evaluations with a subset of the data
Create a dataset of few-shot examples programmatically
Augment trace data with metadata programmatically
Fine-tune a smaller model with production traces from Arize
Arize AX supports Exporting to a notebook and Exporting to a CSV from the UI:
Export to Notebook
You can export data into code from the Tracing page by selecting Export to Notebook from the export dropdown menu. You will be provided with a prefilled function to export your trace data to a dataframe.
# Install Arize SDK
! pip install "arize[Tracing]>=7.1.0"
import os
os.environ['ARIZE_API_KEY'] = 'YOUR_API_KEY'
from datetime import datetime
from arize.exporter import ArizeExportClient
from arize.utils.types import Environments
client = ArizeExportClient()
print('#### Exporting your primary dataset into a dataframe.')
primary_df = client.export_model_to_df(
space_id= '', # pre-filled space_id
model_id='', # pre-filled model_id
environment=Environments.TRACING,
start_time= '', # pre-filled start_time
end_time '', # pre-filled end_time
# Optionally specify columns to improve query performance
# columns=['context.span_id', 'attributes.llm.input']
)Export as CSV
You can download data directly as a CSV file from the Tracing page by selecting Export as CSV from the export dropdown menu. Please note that the CSV export is designed to capture only a sample of the data, specifically the top 10,000 rows currently displayed on the page.
Before exporting, users can customize the output by selecting their desired columns using the table column selector.
Last updated
Was this helpful?

