Skip to content

Commit 6d2507d

Browse files
docstring
1 parent ddcf52a commit 6d2507d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ class _RecordedUsage:
9090

9191

9292
class _StreamSpanContext:
93+
"""
94+
Sets accumulated data on the stream's span and finishes the span on exit.
95+
No-ops if the stream has no span set, the case when the span has already been finished.
96+
"""
97+
9398
def __init__(
9499
self,
95100
stream: "Union[Stream, MessageStream, AsyncStream, AsyncMessageStream]",

0 commit comments

Comments
 (0)