Back to Prompt Library
implementation
Integrate Observability with Braintrust and LangFuse
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Autonomous Enterprise Security Compliance Agent with Claude Opus 4.6
Format
Text-first
Lines
1
Sections
1
Linked challenge
Autonomous Enterprise Security Compliance Agent with Claude Opus 4.6
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
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.
Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.