This guide covers manual instrumentation. For quicker setup, use auto-instrumentation.
Setup
Install the Braintrust Eino integration:Trace with CloudWeGo Eino
Register the Braintrust handler once with Eino’s callback system. All subsequentChatModel calls are traced automatically.
Streaming
For streaming, callhandler.Wait() after closing the reader so asynchronously finalized span attributes are flushed before exit.
#skip-compile