To set up Braintrust as an OpenTelemetry backend, you’ll need to route the traces to Braintrust’s OpenTelemetry endpoint, set your API key, and specify a parent project or experiment. Braintrust supports common patterns from OpenLLLMetry.For more information, see the Braintrust documentation.
To export OTel traces from Traceloop OpenLLMetry to Braintrust, set the following environment variables:
Copy
Ask AI
TRACELOOP_BASE_URL=https://api.braintrust.dev/otelTRACELOOP_HEADERS="Authorization=Bearer%20<Your API Key>, x-bt-parent=project_id:<Your Project ID>"
Note: When setting the bearer token, make sure to URL encode the space between “Bearer” and your API key using %20. For example: