aio
interceptor fails because grpc.aio.Metadata
doesn't correctly implement abc.Mapping
#2373
Labels
bug
Something isn't working
This is related to a known
grpc
bug: grpc/grpc#26498...however, I'm opening it here because that has been opened for several years, and this package could work around the issue.
Environment
I believe this applies to any environment using the current latest Python
grpc
andopentelemetry-instrumentation-grpc
packages.Steps to reproduce
Perform a gRPC call using
aio
, with non-empty metadata and a configured interceptor (e.g. using autoinstrumentation).To see a simple demonstration that the code in
propagate_trace_in_details
doesn't work, just build an exampleMetadata
object in a Python terminal and attempt to construct anOrderedDict
from it:What is the expected behavior?
The call should succeed, and a corresponding trace span should be created.
What is the actual behavior?
There is a key error indicating that lookup of a metadata
(key, value)
pair failed.The text was updated successfully, but these errors were encountered: