open-telemetry / open-telemetry/opentelemetry-cpp

Rare hang when using otlp exporter. Cause seems to be grpc using abseil sync primitives on Windows.

Open
#3,372 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale triage/needs-information
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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.