Skip to main content
Applies to:
  • Plan -
  • Deployment -

Summary

Issue: PydanticAI’s native OTEL instrumentation drops attachment content and only preserves file references, causing PDFs and other documents to disappear from Braintrust’s Input panel. Custom metadata fields may also not appear searchable in the UI. Cause: PydanticAI’s openinference-instrumentation-pydantic-ai serializes BinaryContent as generic binary references without preserving the actual content for Braintrust’s UI rendering. OTEL attributes only become searchable metadata when using the braintrust.metadata.* namespace. Resolution: Replace PydanticAI’s native instrumentation with the Braintrust PydanticAI integration to preserve attachment content and ensure proper metadata mapping.

Resolution steps

If attachments are missing from the Input panel

Step 1: Stop using PydanticAI’s native instrumentation

Step 2: Use the Braintrust PydanticAI integration

Follow the Braintrust PydanticAI integration docs to preserve attachment content in the UI.