opentelemetry-cpp icon indicating copy to clipboard operation
opentelemetry-cpp copied to clipboard

[Exporter] Prevent infinite recursion with grpc

Open marcalff opened this issue 5 months ago • 2 comments

The grpc C++ library is instrumented using opentelemetry-cpp:

  • https://github.com/grpc/grpc/pull/33650

The opentelemetry-cpp OTLP GRPC exporter uses grpc

In the OTLP GRPC exporter implementation, opentelemetry-cpp needs to:

  • disable instrumentation before making calls to grpc
  • reenable instrumentation after grpc calls

so avoid infinite recursion.

This is blocking:

  • linking opentelemetry-cpp with an instrumented grpc library is likely to cause issues.

This is blocked by the spec:

  • https://github.com/open-telemetry/opentelemetry-specification/issues/530

marcalff avatar Aug 28 '24 15:08 marcalff