This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-13
Channels
- # announcements (1)
- # babashka (28)
- # beginners (72)
- # biff (6)
- # calva (15)
- # clerk (14)
- # clj-otel (4)
- # cljdoc (4)
- # clojure (121)
- # clojure-europe (61)
- # clojure-nl (2)
- # clojure-norway (63)
- # clojure-uk (5)
- # datahike (35)
- # datalevin (37)
- # datomic (7)
- # emacs (2)
- # fulcro (6)
- # gratitude (1)
- # honeysql (2)
- # hyperfiddle (38)
- # malli (9)
- # matrix (24)
- # meander (4)
- # off-topic (10)
- # polylith (8)
- # reagent (2)
- # releases (1)
- # shadow-cljs (8)
- # spacemacs (4)
- # specter (1)
- # squint (5)
- # tools-deps (3)
hello! when using keywords as spans, i see that the colon is left on the front. would you be opposed to stripping that for consistency with the built-in agent instrumentation spans?
Retaining the :
is an intentional design choice, I think there is value in not altering keywords, particularly when considering that span names may be queried in the telemetry backend. Remember you are free to use a string or a symbol instead of a keyword for the span name:
(defn square [n]
(span/with-span! 'my-app/squaring
(* n n)))
I will bear this in mind though. I've been thinking about adding a feature to enable span-opts
to be modified by an arbitrary function for all spans as they are created. This could be used for tweaking span names, for example. The use case I have in mind is copying specified key-value pairs in baggage to span attributes. I know Honeycomb has a basic form of this idea in BaggageSpanProcessor
class in their Java OpenTelemetry SDK.