Skip to content

Commit 06aca53

Browse files
return type annotation
1 parent c281b7c commit 06aca53

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sentry_sdk/integrations/rust_tracing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ def on_event(self, event: str, sentry_span: "SentrySpan") -> None:
184184
elif event_type == EventTypeMapping.Event:
185185
process_event(deserialized_event)
186186

187-
def on_new_span(self, attrs: str, span_id: str) -> "Optional[SentrySpan]":
187+
def on_new_span(
188+
self, attrs: str, span_id: str
189+
) -> "Optional[Union[SentrySpan, StreamedSpan]]":
188190
attrs = json.loads(attrs)
189191
metadata = attrs.get("metadata", {})
190192

0 commit comments

Comments
 (0)