Ross ROSS = Recommend OSS · open-source software intelligence for agents

alibaba/transmittable-thread-local

📌 a missing Java std lib(simple & 0-dependency) for framework/middleware, provide an enhanced InheritableThreadLocal that transmits values between threads even using thread pooling components. observed · 2026-08-28

github.com/alibaba/transmittable-thread-local · homepage · Java · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

62/100

  • Activity 88
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4707
  • days_rel: n/a
  • days_push: 76
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

8293 stars · 1722 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

TransmittableThreadLocal (TTL) is a zero-dependency Java library providing an enhanced InheritableThreadLocal that transmits context values between threads even when thread pools reuse threads. It includes a Java Agent to transparently instrument JDK thread pool implementations like ExecutorService and ForkJoinPool.

Use cases

  • pass request context through thread pools in Java middleware
  • propagate trace IDs across async tasks for distributed tracing
  • transmit ThreadLocal values when using ExecutorService or ForkJoinPool
  • maintain user session context in pooled threads
  • build APM or tracing frameworks that need async context propagation
  • wrap Runnable and Callable to carry context across thread boundaries

When to choose

  • your Java framework or middleware needs context propagation through pooled threads
  • InheritableThreadLocal fails because threads are reused from a pool
  • you want a simple, zero-dependency solution with optional Java Agent instrumentation
  • you're building distributed tracing or APM tooling on the JVM

When to avoid

  • you don't use thread pools or async execution
  • you're on a non-JVM platform
  • you need coroutine or reactive-stream context propagation instead of thread-based

Facets

library · maturity stable

concurrency middleware tracing developer-tools developer-tools microservices backend monitoring jvm threadlocal thread-pool context-propagation async executor java-agent zero-dependency

2 sources

Member repositories

RepositoryRoleHealth v2
alibaba/transmittable-thread-localmain62

For agents

markdown · JSON · MCP: product_card(name="alibaba/transmittable-thread-local")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem