You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix(tracing): Skip child span creation in streaming path when no current span (HTTP clients) (#6811)
## Summary
- When span streaming is enabled and there is no current span, HTTP
client integrations should not create new root segments for child-span
operations
- Adds a `sentry_sdk.traces.get_current_span() is None` guard before
creating spans in the streaming path
- Affected integrations: httpx, httpx2, pyreqwest, boto3, stdlib
(urllib)
## Test plan
- [ ] Existing tests pass
- [ ] Verify that in streaming mode, no orphan root segments are created
for outgoing HTTP requests when there's no active span
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Erica Pisani <[email protected]>
Co-authored-by: Neel Shah <[email protected]>
0 commit comments