How can I enable tracing for retries in Python? The retry-stats gRFC, A46, 
says 
<https://github.com/grpc/proposal/blob/master/A45-retry-stats.md#tracing>:

> The gRPC tracing module should create a tracing span for each call from 
the perspective of the application, and create a child span for each 
individual call attempt, including transparent retry attempts.

I don't see any such spans created by the opentelemetry-instrumentation-grpc 
contrib package 
<https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-grpc>
 
(I only see a single span created per gRPC call), so I tried adding the 
`grpcio-observability` package and enabling it as follows:

```python
grpcio_plugin = grpc_observability.OpenTelemetryPlugin()
grpcio_plugin.register_global()
```

This didn't seem to result in any new traces. I see that there's also an 
`OpenTelemetryObservability` class 
<https://grpc.github.io/grpc/python/_modules/grpc_observability/_open_telemetry_observability.html#OpenTelemetryObservability>,
 
which has a function called `create_client_call_tracer`, but it doesn't 
appear to be re-exported by `grpc_observability/__init__.py`, which makes 
me think it might not be intended for public consumption; and it also isn't 
used in the observability example code 
<https://github.com/grpc/grpc/tree/master/examples/python/observability>.

How can tracing for retries be collected and exported?

Thanks,

Kyle Strand

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/3cd70ae9-cf10-4576-bcc7-13380e6d3c28n%40googlegroups.com.

Reply via email to