clj-otel

jmv 2026-04-21T18:54:22.272899Z

hey all, curious if there is advice for instrumenting an transducers and async pipelines? i have a some code like this but i'm not sure what's the best way to instrument something roughly like this:

(def in (my-kafka-steam))
(def out (my-database))
(def xf (comp (map foo) (map bar) (filter baz?)))
(def pipeline (async/pipeline-blocking 10 out xf in))

steffan 2026-04-21T19:54:09.544189Z

You may want to look at the https://github.com/steffan-westcott/clj-otel/tree/master/examples/word-stream-app. It's a core.async.flow application that includes :context in step function outputs. This way, a trace may be constructed of spans representing step function evaluations.

jmv 2026-04-21T19:56:43.744599Z

thank you, i will take a look!