Integrate Observability with Braintrust and LangFuse

implementationChallenge

Prompt Content

Describe and provide code snippets for integrating Braintrust for high-level evaluation metrics and LangFuse for detailed tracing into your Claude Agents SDK workflow. Show how to initialize these tools and wrap agent calls or tool invocations to ensure all relevant data (inputs, outputs, intermediate thoughts, tool calls) is captured. Explain how you would use Braintrust to compare different versions of your agent's performance and LangFuse to debug a specific failure point in the 'Security Risk Assessor' agent.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations