Okay, thank you for explaining. On Thursday, April 25, 2024 at 4:01:43 PM UTC-6 Xuan Wang wrote:
> Hi Kyle, > > The gRFC you mentioned above was not implemented in Python yet. We have a new > gRFC for OpenTelemtry Tracing <https://github.com/grpc/proposal/pull/389> > in progress which will be implemented in Python once it's finished. > > Our `grpcio-observability` package currently only works for metrics, it > does have some functions for tracing but it's not fully implemented yet. > > > On Thu, Apr 25, 2024 at 12:01 PM Kyle Strand <[email protected]> wrote: > >> 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 >> >> <https://groups.google.com/d/msgid/grpc-io/3cd70ae9-cf10-4576-bcc7-13380e6d3c28n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/a9bd130c-2bc9-4967-b15a-09594264478bn%40googlegroups.com.
