Overview
Userespan-exporter-braintrust to export Braintrust log records (including nested spans) to Respan Traces. You can keep using Braintrust’s logger APIs; the exporter installs itself as Braintrust’s background logger and forwards records to Respan.
Quickstart
Step 1: Get a Respan API key
Create an API key in your Respan dashboard.Step 2: Install packages
Step 3: Set environment variables
Create a.env or export environment variables:
.env
Step 4: Run Braintrust with the Respan exporter
Create a file likequickstart.py:
Step 5: View your trace
Open the Traces page in your Respan dashboard.Use Braintrust + OpenAI (optional)
If you’re using Braintrust’s OpenAI wrapper (wrap_openai), you can still export everything to Respan: