open-telemetry / open-telemetry/opentelemetry-cpp
[Exporter] Prevent infinite recursion with grpc
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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