Skip to content

Conversation

@Innex
Copy link
Owner

@Innex Innex commented Jan 12, 2026

Description

Adds a new telemetry exporter for Braintrust, enabling NAT workflows to send traces for AI observability and evaluation.

Key changes:

  • New BraintrustTelemetryExporter class with OTEL support following existing exporter patterns
  • Attribute mapping from OpenInference to GenAI semantic conventions (gen_ai.prompt, gen_ai.completion, gen_ai.usage.*)
  • Span type classification mapping OpenInference kinds (LLM, CHAIN, TOOL, etc.) to Braintrust types
  • Improved span naming for better Braintrust UI display
  • Redundant attribute cleanup to reduce metadata clutter
  • Step-by-step documentation guide
  • Example YAML configuration
  • 32 unit tests

Usage:

general:
  telemetry:
    tracing:
      braintrust:
        _type: braintrust
        project: my-project

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
    • Any contribution which contains commits that are not Signed-Off will not be accepted.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

@Innex Innex force-pushed the feat/braintrust-telemetry-integration branch 5 times, most recently from 10b8e1f to 0495c4b Compare February 9, 2026 20:31
This adds a new telemetry exporter for Braintrust, enabling NAT workflows
to send traces to Braintrust for AI observability and evaluation.

Features:
- BraintrustTelemetryExporter class with OTEL support
- Attribute mapping from OpenInference to GenAI semantic conventions
- Span type classification (LLM, TOOL, TASK, etc.)
- Improved span naming for better Braintrust UI display
- Redundant attribute cleanup to reduce metadata clutter
- Documentation with step-by-step setup guide
- Example configuration file
- Comprehensive unit tests

Signed-off-by: Innex <hniazmandi@gmail.com>
@Innex Innex force-pushed the feat/braintrust-telemetry-integration branch from 0495c4b to fbd7bd0 Compare February 10, 2026 22:36
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.

1 participant