Skip to content

fix(tracing): record Responses input messages and streamed responses - #2687

Open
CodePrometheus wants to merge 1 commit into
theagentrouter:mainfrom
CodePrometheus:fix/tracing-responses-stream
Open

CodePrometheus wants to merge 1 commit into
theagentrouter:mainfrom
CodePrometheus:fix/tracing-responses-stream

Conversation

@CodePrometheus

Copy link
Copy Markdown
Contributor

Description

Map Responses input messages and fold streamed chunks into the response from the terminal event, so a streamed call records the same span as a unary one.

Previously a streamed Responses call recorded no usage, response id or model, and no Responses call recorded gen_ai.input.messages.

Related Issues/PRs (if applicable)

N/A

Special notes for reviewers (if applicable)

N/A

Signed-off-by: Zixin Zhou <zhouzixin@apache.org>
@CodePrometheus
CodePrometheus requested a review from a team as a code owner September 14, 2026 07:28
@netlify

netlify Bot commented Sep 14, 2026

Copy link
Copy Markdown

Deploy Preview for theagentrouter canceled.

Name Link
🔨 Latest commit bbde9e2
🔍 Latest deploy log https://app.netlify.com/projects/theagentrouter/deploys/6aa7a220232cfc0008b197b7

@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.43750% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/tracing/otelgenai/responses.go 98.43% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@missBerg missBerg added bug Something isn't working area/observability Metrics, tracing, logging, GenAI observability labels Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/observability Metrics, tracing, logging, GenAI observability bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants