Skip to content

agent: preserve otel child span events#4027

Merged
asim merged 1 commit into
masterfrom
codex/increment-4025
Jul 5, 2026
Merged

agent: preserve otel child span events#4027
asim merged 1 commit into
masterfrom
codex/increment-4025

Conversation

@asim

@asim asim commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Record model and tool run events before ending their OpenTelemetry spans so child spans keep the correlated timeline event instead of only the persisted run event.
  • Assert model, tool, and stream spans include their corresponding run events.

Closes #3908
Closes #4025

Testing

  • go build ./...
  • go test ./agent
  • go test ./... (fails in this environment because loopback gRPC tests are blocked by Envoy: "Loopback targets forbidden")
  • golangci-lint run ./...

@asim asim added the codex label Jul 5, 2026
@asim
asim merged commit d4bfb4d into master Jul 5, 2026
10 checks passed
@asim
asim deleted the codex/increment-4025 branch July 5, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loop: build increment #77 agent: trace runs as OpenTelemetry spans

2 participants