Skip to content

Commit 0323fd7

Browse files
docs(grpc): Add comment about workaround
1 parent 0d66f35 commit 0323fd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/integrations/grpc/aio/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def _update_client_call_details_metadata_from_scope(
2424
if client_call_details.metadata is None:
2525
client_call_details = client_call_details._replace(metadata=Metadata())
2626
elif not isinstance(client_call_details.metadata, Metadata):
27+
# This is a workaround for a GRPC bug, which was fixed in grpcio v1.60.0
28+
# See https://github.com/grpc/grpc/issues/34298.
2729
client_call_details = client_call_details._replace(
2830
metadata=Metadata.from_tuple(client_call_details.metadata)
2931
)

0 commit comments

Comments
 (0)