Check for deadlocks in telemetry buffers (logs)
I maintainer di solito rispondono entro 2 giorni
@sl0thentr0py ci sta già lavorando.
Dal 17/3/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Context
The Python SDK hit a deadlock in the logs telemetry buffer (Slack thread). The Ruby SDK has a very similar buffer implementation, so we should audit it for the same class of issue.
Problem (from Python)
- The logs buffer acquires a lock when adding a log and when flushing/clearing the buffer
- During a flush (lock held), GC ran and emitted a log → the logging integration tried to add it to the buffer → attempted to acquire the already-held lock → deadlock
- Re-entrant locks didn't help since the GC callback runs on a different thread
What to check in Ruby
- Audit the telemetry buffer lock usage — ensure no code path can trigger a re-entrant lock acquisition (e.g. via callbacks, GC, instrumentation side-effects during flush)
- Minimize critical sections — the lock should only protect fetch/pop/clear/add operations on the buffer data structure. Envelope construction and other side-effects should happen outside the lock
- Consider the .NET approach — their implementation is mostly lock-free (atomic increments/decrements), only locking briefly during flush to extract a copy of the buffer array before releasing
Related
- Python fix by Ivana: moved side-effect-producing work outside the locked section
- Java was checked and looks fine (Alexander)
- .NET uses lock-free atomics, had a separate recursion issue with
Debug=true
- Lingua principale
- Ruby
- Stelle
- 990
- Fork
- 552
- Merge medio
- 2g 16h
- PR unite (30g)
- 29
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-ruby
-
Bug Ruby
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-ruby#3211 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Events dropped client-side for size are only logged at debug level and not recorded as lostForse già presa @sentry-junior l’ha presa oggi. ApertaBug Junior: repro Ruby
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-ruby#3209 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
with_child_span drops spans when blocks exit via break, return, or throwForse già presa @itsrayeedscodespace l’ha presa 1 giorno fa. ApertaBug Ruby Traces Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
getsentry/sentry-ruby#3206 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Let apps choose how the client IP on events is determinedForse già presa @sl0thentr0py l’ha presa 11 giorni fa. ApertaImprovement Ruby
getsentry/sentry-ruby#3180 · 2 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
breaking change Next Major
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
getsentry/sentry-ruby#3176 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di getsentry/sentry-ruby
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
internetee/registry#2984 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ecosyste-ms/issues#862 ·
I maintainer di solito rispondono entro 1 giorno
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configuredForse già presa @mimosa l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
riscv/riscv-unified-db#2829 ·
I maintainer di solito rispondono entro 1 giorno
-
⛓️ Security Difficulty: Easy Good First Issue Help Wanted ruby Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
rubyforgood/casa#7404 ·
I maintainer di solito rispondono entro 1 giorno