We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451ade7 commit 6b17d04Copy full SHA for 6b17d04
sentry_sdk/integrations/grpc/aio/client.py
@@ -21,7 +21,8 @@ class ClientInterceptor:
21
def _update_client_call_details_metadata_from_scope(
22
client_call_details: ClientCallDetails,
23
) -> ClientCallDetails:
24
- client_call_details.metadata = client_call_details.metadata or Metadata()
+ if client_call_details.metadata is None:
25
+ client_call_details = client_call_details._replace(metadata=Metadata())
26
for key, value in Scope.get_current_scope().iter_trace_propagation_headers():
27
client_call_details.metadata.add(key, value)
28
return client_call_details
0 commit comments