Skip to content

Revert streamed spans and stream mode docs changes - #18746

Merged
ericapisani merged 1 commit into
masterfrom
ep/revert-streamed-span-docs
Jul 16, 2026
Merged

Revert streamed spans and stream mode docs changes#18746
ericapisani merged 1 commit into
masterfrom
ep/revert-streamed-span-docs

Conversation

@ericapisani

Copy link
Copy Markdown
Member

This reverts the following commits:

This reverts the following commits:
- e1ad93a
- baec401
- e99273c
- 9b9e31f
- e3485a3

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 16, 2026 1:08pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Jul 16, 2026 1:08pm

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 16, 2026 13:00
@codeowner-assignment
codeowner-assignment Bot requested a review from cleptric July 16, 2026 13:01
@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 16, 2026 13:01
@ericapisani
ericapisani enabled auto-merge (squash) July 16, 2026 13:01

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1a61eb6. Configure here.

span.set_data("messaging.message.body.size", len(message["body"].encode("utf-8")))
span.set_data("messaging.message.receive.latency", latency.total_seconds() * 1000)
span.set_data("messaging.message.body.size", message["body"])
span.set_data("messaging.message.receive.latency", latency)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong queue span attribute values

Medium Severity

The consumer example sets messaging.message.body.size to the message body itself and messaging.message.receive.latency to a timedelta, but those attributes expect a byte size and milliseconds. The producer example and the attribute table in the same page already document the correct shapes, so anyone copying this will send invalid queue metrics.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1a61eb6. Configure here.


span.set_data("http.response.status_code", response.status_code)
span.set_data("http.response_content_length", response.headers.get("content-length"))
span.set_data("http.response_content_length", response.headers["content-length"])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsafe content-length header access

Low Severity

The restored requests example reads response.headers["content-length"] directly. Many responses omit that header, so the sample raises KeyError before the span can finish. The pre-revert version used a safe .get() check.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1a61eb6. Configure here.

@ericapisani
ericapisani merged commit ba13b79 into master Jul 16, 2026
22 checks passed
@ericapisani
ericapisani deleted the ep/revert-streamed-span-docs branch July 16, 2026 13:16
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.

3 participants