Logging is a mix-in to conveniently add logging support to any class or object.
Updates Throwables
fired within the supplied function to include positional information tying back up the
asynchronous chain.
Updates Throwables
fired within the supplied function to include positional information tying back up the
asynchronous chain. This should only be necessary if you have no control over the creation of Future
s in your
code. Ideally, just use scribe.future
instead.
Use this as a function wrapper to fix Throwable
instances. This must be coupled with:
import scribe.Execution.global
Or there will be no stack to inject.
the return type of the wrapped function
the functional that may throw a Throwable
Convenience method to create a Future
with the Scribe ExecutionContext
to properly track tracing up the chain
for asynchronous operations.
Convenience method to create a Future
with the Scribe ExecutionContext
to properly track tracing up the chain
for asynchronous operations. When using this, no other operation should be necessary. However, if you map to other
future operations that require an ExecutionContext
, make sure to use import scribe.Execution.global
instead of
the default global
ExecutionContext
or the stack data will be lost.
the return type for the code
the function to run in a new Future