Skip to content

fix(otel): filter spans before adding origin attributes - #652

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-filter_ai_spans
Aug 5, 2026
Merged

fix(otel): filter spans before adding origin attributes#652
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-filter_ai_spans

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

fixes #651

Place span-origin enrichment downstream of AI filtering so SDK-added braintrust attributes cannot cause non-AI spans to be exported. Add real OpenTelemetry regression coverage using an in-memory exporter.

Place span-origin enrichment downstream of AI filtering so SDK-added braintrust attributes cannot cause non-AI spans to be exported. Add real OpenTelemetry regression coverage using an in-memory exporter.
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 2538a9f into main Aug 5, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-filter_ai_spans branch August 5, 2026 14:09
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.

filter_ai_spans=True has been a no-op since 0.28.0 — on_end injects braintrust.context_json ahead of AISpanProcessor's prefix filter

2 participants