Liking cljdoc? Tell your friends :D

opentracing-clj.ring

Ring middleware for opentracing.

Ring middleware for opentracing.
raw docstring

default-op-nameclj

(default-op-name {:keys [request-method uri] :as request})
source

default-request-tagsclj

(default-request-tags {:keys [request-method] :as request})
source

default-response-tagsclj

(default-response-tags {:keys [status] :as response})
source

wrap-opentracingclj

(wrap-opentracing handler)
(wrap-opentracing handler op-name-fn)
(wrap-opentracing handler op-name-fn request-tags-fn)
(wrap-opentracing handler op-name-fn request-tags-fn response-tags-fn)

Middleware for instrumenting a ring handler with tracing. Handles HTTP header context propagation.

Adds a ::span field to the ring request for use downstream.

op-name-fn = (f ring-request) => op-name request-tags-fn = (f ring-request) => request-tags response-tags-fn = (f ring-response) => response-tags

Middleware for instrumenting a ring handler with tracing.  Handles
HTTP header context propagation.

Adds a ::span field to the ring request for use downstream.

op-name-fn       = (f ring-request)  => op-name
request-tags-fn  = (f ring-request)  => request-tags
response-tags-fn = (f ring-response) => response-tags
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close