There is a new library called https://github.com/igrishaev/pg-bin to parse Postgres COPY dumps made in binary format. Zero deps, various strategies to handle json(b) types. The readme file has some real scenarios when it's useful.
https://github.com/steffan-westcott/clj-otel release 0.2.9 is out. clj-otel provides an idiomatic Clojure API for adding telemetry to your libraries and applications using OpenTelemetry.
Highlights of this release include:
🔭 Bumped OpenTelemetry deps to 1.54.0
📏 Async span support for core.async (e.g. async-style), CompletableFuture (e.g. promesa, auspex, whew), Manifold, Missionary
🔀 New example of an instrumented core.async.flow application
🌯 New middleware for wrapping spans; use to record exceptions before transformation
🪲 Fixed some bugs, more robust handling of Ring request maps
🗒️ See the https://github.com/steffan-westcott/clj-otel/blob/master/CHANGELOG.adoc for more information on changes in this release
Hey @steffan, any plans to support the logs API? I intend to add to #eca soon and would love to have that support if possible
something like https://github.com/clojure-lsp/clojure-lsp/blob/master/cli/src/clojure_lsp/server.clj#L102-L111 would already be quite handful
Yes, I'll likely be looking at the Logs API next, specifically programmatic provision of logging providers. After that I'll look at the logger itself, though right now I don't know if adding anything there would be helpful to application authors.
I see, thank you anyway!
FYI @steffan I https://github.com/editor-code-assistant/eca/commit/0011a1240ee24f8946a4ad3ca0185e28d88077cb#diff-09496ea4103e5cfb1a7097d90164f66f057a2907d9f2737347b0c6db34748375R1 clj-otel integration in #eca for the metrics api, it was quite smooth, thank you!
Actually found some possible graalvm issues https://github.com/editor-code-assistant/eca/actions/runs/17810271269/job/50632157870, will take a look
I believe https://github.com/steffan-westcott/clj-otel/blob/master/clj-otel-api/src/steffan_westcott/clj_otel/context.clj#L137-L152 is the issue, graalvm doesn't line defs with side effects, moving to defn would solve it
Fixed like https://github.com/editor-code-assistant/eca/commit/9d6eda5f0b60d4f0e38d305c93d4bdc85457fcbf, but it's pretty easy to break in future clj-otel changes, would be nice to improve on clj-otel side
Thank you for the report 👍🏼. I will look into this next, before the Logs API stuff. To my shame, I have not looked at GraalVM usage at all. I know OpenTelemetry Java instrumentation agent does not work with GraalVM native images, but without the agent, it ought to work just fine.