io.pedestal.http.tracing
added in 0.7.0
HTTP request tracing based on Open Telemetry.
mark-routed
(mark-routed context route-name)
(mark-routed context route-name path)
Marks the currently active span as routed, using route-name as the name of the route and path. Does nothing if there is no span in the context.
The path defaults to the :uri of the request.
Returns the context.
request-tracing-interceptor
(request-tracing-interceptor)
A tracing interceptor traces the execution of the request. When the request is successfully routed, the trace will identify the HTTP route and route name.
This interceptor should come first (or at least, early) in the incoming pipeline to ensure that all execution time is accounted for. This is less important when the OpenTelemetry Java agent is in use, at that captures the overall request processing time, from start to finish, more accurately.