Returns the Context instance held in the Storage, or Context.Empty if nothing is stored.
Returns the Context instance held in the Storage, or Context.Empty if nothing is stored.
Temporarily puts a Context instance in the Storage.
Temporarily puts a Context instance in the Storage.
A ThreadLocal context storage that allows the scope to be closed in a different thread than the thread where store(..) was called. This is roughly 25% slower than kamon.context.Storage.ThreadLocal but is required for certain library integrations such as cats-effect IO or Monix. Turn this on by setting the System Property "kamon.context.crossThread" to "true".