This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-07
Channels
- # announcements (16)
- # asami (15)
- # babashka (12)
- # beginners (38)
- # calva (32)
- # cider (1)
- # clj-commons (9)
- # clj-otel (4)
- # clojure (57)
- # clojure-europe (43)
- # clojure-korea (1)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # clojurescript (10)
- # cursive (5)
- # datahike (9)
- # deps-new (2)
- # events (1)
- # fulcro (8)
- # hyperfiddle (7)
- # kaocha (1)
- # lsp (2)
- # malli (3)
- # nrepl (2)
- # off-topic (19)
- # releases (3)
- # ring (10)
- # shadow-cljs (4)
- # sql (14)
- # xtdb (57)
- # yamlscript (2)
Hey team, noob question: what do you usually do for sampling?
Context: I have a handler for messages types a
b
c
. The problem: c
can come in with 1000+ requests / second, while a & b should not.
I know I can give a root sampler, but it feels weird to do in this case, as I really only want to sample c
. I would love to sample based on the event type. Like a sample-rate
I could provide to with-span!
Is this how you would approach it? Or would you try something different?
To be honest I don't have a comprehensive answer yet for trace sampling in the application. My current understanding is that spans should always be created, but only sampled traces are exported. I fully acknowledge I need to develop some support and guidance on trace sampling in clj-otel
, it's on my to-do list!