File tree Expand file tree Collapse file tree
sentry_sdk/integrations/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ def intercept_unary_stream(
8484
8585 client = sentry_sdk .get_client ()
8686 span_streaming = has_span_streaming_enabled (client .options )
87+ response : "UnaryStreamCall"
8788 if span_streaming :
8889 with sentry_sdk .traces .start_span (
8990 name = "unary stream call to %s" % method ,
@@ -101,7 +102,7 @@ def intercept_unary_stream(
101102 )
102103 )
103104
104- response : "UnaryStreamCall" = continuation (client_call_details , request )
105+ response = continuation (client_call_details , request )
105106 # Setting code on unary-stream leads to execution getting stuck
106107 # span.set_data("code", response.code().name)
107108
@@ -121,7 +122,7 @@ def intercept_unary_stream(
121122 )
122123 )
123124
124- response : "UnaryStreamCall" = continuation (client_call_details , request )
125+ response = continuation (client_call_details , request )
125126 # Setting code on unary-stream leads to execution getting stuck
126127 # span.set_data("code", response.code().name)
127128
You can’t perform that action at this time.
0 commit comments