fix(eve): Nest turns under the caller's propagated trace context - #2574
Merged
Abhijeet Prasad (AbhiPrasad) merged 3 commits intoOct 5, 2026
Merged
Conversation
Abhijeet Prasad (AbhiPrasad)
force-pushed
the
lforst/dum-e/berlin-97c143c625
branch
from
October 5, 2026 15:12
30d29cd to
9e4265e
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Oct 5, 2026
Abhijeet Prasad (AbhiPrasad)
enabled auto-merge (squash)
October 5, 2026 15:21
Abhijeet Prasad (AbhiPrasad)
deleted the
lforst/dum-e/berlin-97c143c625
branch
October 5, 2026 16:20
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.
braintrustEveInstrumentation()records each Eve agent turn as aneve.turnspan, with the model calls and tool calls of that turn as its children.eve.turnwas always a root span unless it belonged to an Eve subagent.traceparentheader, the turn still showed up as its own separate trace.eve.session_id. Online scoring rules on the caller's span also couldn't see the agent's tool calls.parentTraceContexton itsturn.startedevent, but the SDK ignored it.parentTraceContextand isn't a subagent turn, theeve.turnspan becomes a child of the caller's span, inside the caller's trace.traceparentheaders: the trace id becomes the root and the caller's span id becomes the parent.traceparenton session creates that include a remote-subagentcallback. Plaineve/clientsessions won't nest until Eve forwardstraceparentfor those requests as well.