This guide covers manual instrumentation. For quicker setup, use auto-instrumentation.
Setup
Install the Braintrust Ruby SDK and RubyLLM:.env
Trace with RubyLLM
Enable automatic tracing by wrapping RubyLLM with Braintrust:app.rb
- Chat completions across any provider
- Tool/function calls
- Token usage metrics
- Streaming responses