Create a new Span for representing the incoming request and propagate the Kamon context by joining to the incoming context or creating new one in other case.
Create a new Span for representing the incoming request and propagate the Kamon context by joining to the incoming context or creating new one in other case.
It's written with continuation-passing style (CPS) to keep explicitly the order of metrics and trace managing.
The continuation function must be called with the TracingContinuation
to continue the request processing.
TracingContinuation
object has the callbacks for success or fail response processing.
: Value Type to be used to manage tracing on the resulted response
: Final Result Type produce after computation of continuation provided
: Request
: Response
: continuation function where it will be passed the final trace processing