open-telemetry / open-telemetry/opentelemetry-cpp
Rare hang when using otlp exporter. Cause seems to be grpc using abseil sync primitives on Windows.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 632
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 75
Description
** Describe your environment **
- Windows 10/11, Visual Studio 2022, bazel 8.2.1 (bazel 8+ should work, maybe even 7+)
Steps to reproduce
- Repro steps in here https://github.com/malkia/grpc_absl_hang
What is the expected behavior?
- Using opentelemetry-cpp (through grpc) should not hang.
What is the actual behavior?
- It hangs instead, roughly 1 in 3000 cases.
Additional context
The issue is not really opentelemetry-cpp, but more like gRPC using abseil primitives on Windows, though users relying on the otlp grpc exported may be affected.
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 with the reproduction at https://github.com/malkia/grpc_absl_hang and reproduce the intermittent hang on Windows with the OTLP gRPC exporter. Trace the gRPC and Abseil synchronization path involved in the hang. Done means identifying and fixing the Windows-specific cause, then confirming the exporter no longer hangs under repeated reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, grpc
- Domain
- distributed-systems, networking, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100