Restores lost caller stack traces across JVM thread boundaries without production overhead.
Standard JVM thread scheduling discards caller frames. Ariadne solves this by recording lightweight pointer chains at dispatch time.
When execution transitions across thread boundaries, standard JVM semantics permanently sever caller diagnostics.
ThreadPoolExecutor, ForkJoinPool, or reactive scheduler, the worker thread begins execution at runWorker(). The caller call stack is permanently discarded.
new Throwable() on every task dispatch or framework assembly tracking impose a 10× to 100× throughput penalty and heavy garbage collection, making them unsafe for production.
Ariadne preserves the causal execution graph with single-digit nanosecond allocation and zero happy-path heap retention.
StackTraceElement arrays (0 bytes retained GC overhead).
AsyncCausalityException with full call-site provenance via Throwable.addSuppressed().
Every advice and reconstructor block is bulletproofed with complete exception shielding. A master runtime kill switch (-Dariadne.enabled=false) and package exclusion list ensure risk-free operations.
MDC diagnostic attachments in exception messages are disabled by default with strict key allowlisting (ariadne.mdc.allowlist) to prevent tokens, credentials, or PII from leaking to log aggregators.
Memory is strictly bounded to O(maxDepth). When pruning long-lived or recursive chains, Ariadne guarantees that the root ingress origin (e.g., HTTP controller) is permanently preserved alongside immediate failure context.
Traditional tools capture complete Throwables on every task, causing 10×–100× throughput degradation. Ariadne records lightweight pointer chains during scheduling and synthesizes stack frames only upon failure.
AsyncCausalityException via addSuppressed().
Standardized JMH 1.37 benchmarks on Linux x86_64 (OpenJDK 21.0.2 LTS, 5 warmup + 5 measurement iterations, compiler blackholes active, -prof gc).
OS thread scheduling and context switching dominate absolute latency (~18 µs). Ariadne wrapping adds only +0.27 µs (+1.4%), allocating just 536 B across the full pipeline.
Rigorous claim: Ariadne incurs only +1.5% overhead on Mono and +1.2% on Flux stream hops, with ~5.8x less allocation than native Hooks.onOperatorDebug().
Ariadne is 14.2x faster with 9.2x less memory allocation per trace node. Stack traces synthesized only on error, avoiding span telemetry pipelines.
| Benchmark Operation | Mode / Param | Score (Latency) | Error (99.9%) | Memory Allocation |
|---|---|---|---|---|
contextReadCurrent | - | 1.427 ns/op | ± 0.022 | 0.0 B/op |
cachedSiteRegistryLookup | - | 1.245 ns/op | ± 0.016 | 0.0 B/op |
directLinkAllocation | - | 1.547 ns/op | ± 0.048 | 40.0 B/op |
contextSpawn | - | 7.047 ns/op | ± 0.064 | 40.0 B/op |
callSiteResolutionClassMode | - | 5.286 ns/op | ± 0.133 | 0.0 B/op |
contextAttachAndScope | - | 10.283 ns/op | ± 0.130 | 0.0 B/op |
callSiteResolutionSampledMode | - | 21.107 ns/op | ± 0.520 | 10.1 B/op |
synchronousCallableWrapAndCall | - | 13.273 ns/op | ± 0.625 | 24.0 B/op |
synchronousRunnableWrapAndRun | - | 15.171 ns/op | ± 3.542 | 24.0 B/op |
callSiteResolutionFullMode | - | 1320.257 ns/op | ± 41.007 | 1000.0 B/op |
completableFutureSingleHopWrapped | - | 18.836 µs/op | ± 0.483 | 216.0 B/op |
completableFutureSingleHopBaseline | - | 18.995 µs/op | ± 0.656 | 160.1 B/op |
completableFutureMultiHopWrapped | - | 18.689 µs/op | ± 0.343 | 536.3 B/op |
completableFutureMultiHopBaseline | - | 18.415 µs/op | ± 0.497 | 368.0 B/op |
agentInstrumentedCompletableFutureAsync | - | 19.600 µs/op | ± 0.765 | 328.9 B/op |
agentInstrumentedCompletableFutureMultiHop | - | 19.027 µs/op | ± 0.384 | 856.7 B/op |
agentInstrumentedThreadPoolSubmit | - | 19.184 µs/op | ± 0.755 | 248.8 B/op |
platformPoolAriadneWrapped | - | 19.516 µs/op | ± 0.888 | 168.1 B/op |
platformPoolBaseline | - | 19.049 µs/op | ± 0.849 | 112.1 B/op |
virtualThreadAriadneWrapped | - | 18.068 µs/op | ± 0.582 | 624.1 B/op |
virtualThreadBaseline | - | 17.551 µs/op | ± 0.698 | 368.1 B/op |
monoAsyncHop | ARIADNE | 19.131 µs/op | ± 0.541 | 488.0 B/op |
monoAsyncHop | BASELINE | 18.847 µs/op | ± 0.544 | 392.0 B/op |
monoAsyncHop | OPERATOR_DEBUG | 21.323 µs/op | ± 0.675 | 2848.1 B/op |
monoMultiHopChain | ARIADNE | 38.890 µs/op | ± 1.421 | 1264.3 B/op |
monoMultiHopChain | BASELINE | 38.928 µs/op | ± 1.337 | 976.3 B/op |
monoMultiHopChain | OPERATOR_DEBUG | 45.113 µs/op | ± 2.345 | 6728.3 B/op |
fluxStreamAsyncHop | ARIADNE | 20.867 µs/op | ± 0.815 | 3864.1 B/op |
fluxStreamAsyncHop | BASELINE | 20.624 µs/op | ± 0.697 | 3768.1 B/op |
fluxStreamAsyncHop | OPERATOR_DEBUG | 24.285 µs/op | ± 0.859 | 7064.4 B/op |
Zero code modifications required when launched via the Java Agent, or integrate programmatically via Maven or Gradle.
Targeted and verified on Java 21 LTS (OpenJDK, Eclipse Temurin, and GraalVM).
| Version | Status | Key Enhancements | Artifacts | Commit |
|---|---|---|---|---|
| v0.1.0-beta.1 | Latest | First Beta Release: W3C TraceContext Level 1 propagation, OpenTelemetry reflection bridge, Kotlin Coroutines ThreadContextElement adapter, JDK 21 Scoped Values carrier, and hardened Bootstrap ClassLoader injection. | Download JARs | Beta 1 |
| v0.1.0-alpha.3 | Archive | Call Site Resolution Modes, hardened Executor & Thread Advice, Technical Wiki, MDC bootstrap carrier hardening, and SpotBugs false-positive exclusions. | Download JARs | 816bc55 |
| v0.1.0-alpha.2 | Archive | SLF4J MDC Context Propagation Adapter, Canary Probes, JMH Benchmark Suite, and JMX MBean Observability. | Download JARs | 0b608a4 |
| v0.1.0-alpha.1 | Archive | Initial core engine, ByteBuddy Java agent, Reactor & RxJava adapters, JMX management. | Download JARs | 5660c72 |