Skip to main content
Applies to:
  • Plan -
  • Deployment -
Summary Query and aggregate metrics across multiple Braintrust projects using the project_logs() function with multiple project IDs. Use estimated_cost() to compute costs directly in span-level queries across any number of projects.

Configuration Steps

Step 1: Query Multiple Projects Using Span Shape

Pass multiple project IDs to project_logs() and filter for LLM spans. Use estimated_cost() to aggregate costs without manual token math.

Step 2: Alternative Approach Using Summary Shape

Query each project separately using summary shape and combine results in your application to use pre-calculated cost values.