Repository navigation
Solving broken async stack traces in the JVM (my solution) — and bridging with OpenTelemetry #20446
Unanswered
AfonsoPaiva
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I wanted to share an open-source project called ariadne, designed to solve broken exception stack traces in asynchronous Java (
CompletableFuture, thread pools, Virtual Threads, Reactor) without the overhead of span telemteryThe Idea: Lazy In-Process Causality
Instead of creating a full lifecycle spans on every asynchronous hop:
Link) in thread-local memory (~8 ns / 40 B). Zero stack traces or Throwables are captured during task submissionThrowable.addSuppressed()JMH Microbenchmark (Java 21 HotSpot,
-prof gc)Running ariadne side-by-side with OpenTelemetry Java SDK (
opentelemetry-sdk:1.49.0):LinkvsSpan)40.0 B368.0 Btry-with-resources)Thread.ofVirtual)656.0 B560.0 B213.4 B194.8 BBridging with OpenTelemetry
so dis proj complements OTel ofc. Through
ariadne-adapter-otel(zero compile-time OTel dependency via reflection), ariadne extracts the active OpenTelemetrytraceparentand attaches the OTel[Trace: 00-...-01]directly to JVM exception logs:Questions:
opentelemetry-java-instrumentation?Repo: https://github.com/AfonsoPaiva/ARIADNE
Would love your thoughts and feedback!
All reactions