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’sopeninference-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.