open-telemetry / open-telemetry/opentelemetry-cpp

[Exporter] Prevent infinite recursion with grpc

Open
#3,039 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug issue:blocked issue:blocking Stale
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

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

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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the OTLP GRPC exporter implementation and the linked OpenTelemetry specification issue 530, then trace how instrumentation surrounds calls into grpc. The work is complete when the exporter can make grpc calls without recursively triggering its own instrumentation, with instrumentation safely restored afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, grpc
Domain
observability-sre
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.