Module io.jstach.rainbowgum.scopedkeyvalues


module io.jstach.rainbowgum.scopedkeyvalues
EXPERIMENTAL A small, self-contained facade for request/task-scoped key values - see ScopedKeyValues. This module has no dependency beyond (optionally) JSpecify, the same shape as slf4j-api: it is meant to be a safe compile-time dependency for application/library code that wants to push scoped key values without committing to which logging backend (if any) actually records them.

The real work is done by whichever provider a ScopedKeyValuesProviderFactory found via ServiceLoader at class-init time hands back - see io.jstach.rainbowgum.scopedkeyvalues.provider for the RainbowGum-backed one. When none is found, ScopedKeyValues falls back to running the body without recording anything, the same "safe with nothing bound" behavior SLF4J's own facade falls back to when no org.slf4j.spi.SLF4JServiceProvider is found.