Skip to content

[NET-1387] fix: Add iterable object support and stream early-exit handling for 'set_root_output_stream'#342

Open
Nithish-KV wants to merge 3 commits into
developfrom
fix/set-output-stream-on-break
Open

[NET-1387] fix: Add iterable object support and stream early-exit handling for 'set_root_output_stream'#342
Nithish-KV wants to merge 3 commits into
developfrom
fix/set-output-stream-on-break

Conversation

@Nithish-KV

@Nithish-KV Nithish-KV commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Changes

  • fix: Add fallback support in Netra.set_root_output_stream() to handle plain iterables by storing them directly on the root span when the input is not an iterator.
  • fix: Add logic to ensure that any streamed output consumed before the stream is terminated early is still recorded on the root span while using Netra.set_root_output_stream().

Jira

NET-1387

Comment thread netra/instrumentation/stream_utils.py
@Nithish-KV
Nithish-KV force-pushed the fix/set-output-stream-on-break branch from ca241ce to 69494ea Compare July 27, 2026 06:36
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.

2 participants