This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-25
Channels
- # babashka (31)
- # beginners (38)
- # biff (1)
- # calva (10)
- # clj-kondo (10)
- # clj-otel (9)
- # clojure (9)
- # clojure-europe (4)
- # clojure-norway (4)
- # clojurescript (26)
- # cursive (2)
- # datahike (3)
- # datomic (4)
- # emacs (6)
- # inf-clojure (2)
- # missionary (11)
- # nbb (3)
- # off-topic (9)
- # portal (17)
- # re-frame (16)
- # reagent (1)
- # releases (3)
- # shadow-cljs (5)
- # tools-build (17)
- # tools-deps (2)
- # xtdb (6)
Hi @steffan! In the readme you write "There is presently no coverage of the Metrics or Logs API. Work on these will commence shortly." Did you already start working on this? Can I maybe already try it out?
clj-otel
does not have Metrics or Logs support at the moment. The good news is work will start in this area over the next couple of weeks. I have been busy with personal issues which have slowed progress on clj-otel
, but signs are that things should be resolved soon. I appreciate your patience in the meanwhile 🙂
The OpenTelemetry Metrics API has been declared stable fairly recently, although the SDK has not quite reached that milestone yet. When clj-otel
was first released, the Metrics API was not stable so was not a great place to put much development focus. Now some stability is there, it's a better time to add Metrics support in clj-otel
.
I am using this interceptor:
(def add-route-data
{:name ::add-route-data
:enter (fn [context]
(http/add-route-data! (-> context :route :path))
context)})
Would that be a good fit to add to http/server-span-interceptors
?Do you happen to know if this route information is always present irrespective of which router is used?
I found the hint about it here: http://pedestal.io/api/pedestal.route/io.pedestal.http.route.html#var-router-spec
My interpretation of this is that any implementation of the RouterSpecification
protocol does this, but better read it yourself -- I do not know much about these internals of Pedestal.