autoinstrumentation + dd otel compat mode#55
Merged
Andrew Kent (realark) merged 1 commit intomainfrom Apr 1, 2026
Merged
Conversation
2d083de to
03b4063
Compare
480dd57 to
1370c63
Compare
1370c63 to
af7dcea
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Apr 1, 2026
Member
Abhijeet Prasad (AbhiPrasad)
left a comment
There was a problem hiding this comment.
none of the comments block
braintrust-java-agent/internal/src/main/java/dev/braintrust/agent/BraintrustAgent.java
Outdated
Show resolved
Hide resolved
braintrust-java-agent/internal/src/main/java/dev/braintrust/agent/dd/BTInterceptor.java
Outdated
Show resolved
Hide resolved
...META-INF/services/io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizerProvider
Outdated
Show resolved
Hide resolved
braintrust-java-agent/internal/src/main/java/dev/braintrust/agent/dd/DDSpanConverter.java
Outdated
Show resolved
Hide resolved
9340aeb to
3913170
Compare
3913170 to
8f55ca2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When datadog is running in otel mode, it hijacks otel tracer globals and replaces them with a dd shim. This PR re-enables trace reporting to braintrust by registering a datadog trace interceptor and sending a copy of all traces up to braintrust.
Likely, this will report a lot of uninteresting spans to braintrust, so we will also ship a flag to filter for only braintrust spans (in a separate fast-follow PR).