Clears the current TraceContext.
Returns the current TraceContext.
Returns the current TraceContext. May return an empty trace context if not trace context is currently active.
the current trace context.
Sets the current TraceContext.
Sets the current TraceContext.
the context that should be set as the current trace context.
Creates a new Metrics with the specified category.
Creates a new Metrics with the specified category. Chaining calls to this method will produce nested categories.
the name of the category (or sub-category).
the new Metrics.
Creates a new context wrapping code that produces a Future.
Creates a new context wrapping code that produces a Future. If autoFinish is set to true, will finish the context when the future completes.
the type produced by the Future.
the name of the trace to be started.
whether the trace should be finished when the future completes.
whether to count the number of futures that complete with success / failure.
the code that will be executed within the context.
used to handle the onComplete callback.
the Future produced by the code.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Creates a new trace context that wrap the supplied code and sets it as the current context.
the type of the result produced by the code.
the name of the trace.
the trace token.
whether the trace should be finished when the code has been executed.
the code to be executed within the context.
the result produced by the code.
Creates a new context wrapping the specified code named using the implicitly passed name.
Creates a new context wrapping the specified code named using the implicitly passed name.
Auto-finishes.
the type produced by the code block.
the code that will be executed within the context.
the implicitly supplied name of the caller.
the result produced by the code.
Creates a new context wrapping the specified Future producing code named using the implicitly passed name.
Creates a new context wrapping the specified Future producing code named using the implicitly passed name.
Auto-finishes and counts.
the type produced by the Future.
the code that will be executed within the context.
the implicitly supplied name of the caller.
used to handle the onComplete callback.
the Future produced by the code.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Creates a new trace context that wrap the supplied code and sets it as the current context.
the type of the result produced by the code.
the name of the trace.
whether the trace should be finished when the code has been executed.
the code to be executed within the context.
the result produced by the code.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Does not autoFinish.
the type of the result produced by the code.
the name of the trace.
the trace token.
the code to be executed within the context.
the result produced by the code.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Creates a new trace context that wrap the supplied code and sets it as the current context.
Does not autoFinish.
the type of the result produced by the code.
the name of the trace.
the code to be executed within the context.
the result produced by the code.
Injectable wrapper around the Kamon Tracer singleton. Provides additional methods to automatically name traces and to maintain a completion count of futures that succeed / fail.
Supports creating new instances that categorise contexts created within them. Enables nesting traces metrics. Should be used in conjunction with the EscapingMetricKeyGenerator if metric names are to be nested in statsd.