opencensus-clojure.ring.middleware

wrap-tracing

(wrap-tracing handler)(wrap-tracing handler name-foo)

Ring middleware that wraps span tracing around a ring handler.

  • :handler the ring handler
  • :name-foo a 1-arg function that takes the request and returns a string, used to figure out the operation name for the span. A common example might be :uri, if your paths don’t have variables in them.