steffan-westcott / clj-otel

An idiomatic Clojure API for adding telemetry to your libraries and applications using OpenTelemetry.
https://cljdoc.org/d/com.github.steffan-westcott/clj-otel-api
Apache License 2.0
183 stars 12 forks source link

Function to set sync gauges? #20

Closed leahneukirchen closed 1 week ago

leahneukirchen commented 1 week ago

Good to see support for synchronous Gauges, but I wonder if there should be an instrument/set! to set them? I guess one can work around by calling .set directly, but this is not very idiomatic.

steffan-westcott commented 1 week ago

@leahneukirchen Thank you for highlighting this omission. I've verified the new steffan-westcott.clj-otel.api.metrics.instrument/set! function works as intended. Thanks again!