Skip to main content
To view logs from your application in real-time, go to your project in the Braintrust UI and select Logs.

Browse traces and spans

By default, logs display as a table of traces where each row represents a complete trace with its root span. Switch to Spans view to see all logged spans individually. View individual spans when you want to:
  • Analyze specific operations within traces
  • Find particular function calls or API requests
  • Examine timing for individual operations
Group multiple related traces based on shared metadata or tags to understand the full context of multi-step operations.
  1. On the Logs page, select Group and choose a tag or metadata path.
  2. Select a trace with the grouped attribute to see it alongside all related traces
  3. Switch to Timeline view to see operation timing or Thread view for the entire session.
Group related traces

Create custom columns

Surface important metadata, scores, or nested values directly in the logs table by creating custom columns. To create a custom column:
  1. Select the column dropdown in the logs table.
  2. Click + Add custom column.
  3. Enter a name and choose from inferred fields or write a SQL expression.
For example, create a column named User ID with the expression metadata.user_id to display the user ID for each trace. Custom columns work the same way in both logs and experiments. For more details, see Create custom columns.

Iterate in playgrounds

Extract prompts and inputs from logs to quickly test variations in playgrounds.
  1. Select the rows you want to extract.
  2. Select Iterate in playground.
  3. Customize settings and optionally append to existing resources.
  4. Select Create playground.

Organize with tags

Tags help you categorize and track specific types of data across logs, datasets, and experiments.
Configure tags in your project:
  1. Navigate to the Configuration tab
  2. Add, modify, or delete tags with custom names, colors, and descriptions Configure tags

Next steps