Skip to content

Conversation

@ihower
Copy link

@ihower ihower commented Dec 24, 2025

This PR fixes two issues in the Braintrust logger:

  1. async_log_success_event did not pass span_attributes
    The sync version (log_success_event) did pass custom span_attributes, but the async version did not.
    This caused span metadata to be lost when using async logging.

  2. tags should not be sent for non-root spans
    Braintrust returns an error when tags are set on non-root spans:
    Braintrust cannot specify 'tags' for non-root spans.

    This PR only includes tags when root_span_id is not present.

Docs: https://docs.litellm.ai/docs/observability/braintrust


Changes

  • Pass custom span_attributes in async_log_success_event.
  • Only send tags for root spans.

@vercel
Copy link

vercel bot commented Dec 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Dec 24, 2025 8:26am

@CLAassistant
Copy link

CLAassistant commented Dec 24, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants