Skip to content

enhancement - add an optional exporter injection point to BraintrustSpanProcessor#42

Closed
colinbennettbrain wants to merge 4 commits intomainfrom
optional-exporter
Closed

enhancement - add an optional exporter injection point to BraintrustSpanProcessor#42
colinbennettbrain wants to merge 4 commits intomainfrom
optional-exporter

Conversation

@colinbennettbrain
Copy link
Copy Markdown
Contributor

  • Added an optional exporter parameter to the add_braintrust_span_processor function and the BraintrustSpanProcessor class to allow injection of custom OpenTelemetry exporters.
  • Updated tests to verify functionality with a custom exporter using InMemorySpanExporter.

- Implemented _on_ending method in AISpanProcessor and BraintrustSpanProcessor to forward pre-end hooks.
- Added a helper function _forward_on_ending to handle compatibility with different OpenTelemetry SDK versions.
- Updated tests to verify the presence and functionality of the new _on_ending method.
@colinbennettbrain colinbennettbrain deleted the optional-exporter branch March 5, 2026 00:55
@colinbennettbrain colinbennettbrain restored the optional-exporter branch March 5, 2026 00:58
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the optional-exporter branch March 26, 2026 17:41
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