with-timing macro: [client metric], [client metric tags], or
[client metric tags options], evaluates the body and records its
elapsed wall-clock time via timing, even if the body throws. Tags and
options may be any expression - they're bound via the macro's generated
let, not sniffed from the syntactic shape of the call site.:address-lookup and :telemetry-address-lookup client options accept a
0-arg Clojure function for dynamic service discovery / address refresh.stop!, distinct from close, invoking the client's explicit .stop().telemetry-metric wraps sendTelemetryMetric (telemetry must be enabled).unixstream://), telemetry-builder, and close shutdown
test coverage.ex-info with the offending option/value/accepted-set instead of failing
later with an opaque Java NullPointerException.client no longer unconditionally sets localhost:8125 on the builder;
host/port are now opt-in overrides, so the underlying Java client's own
DD_AGENT_HOST/DD_DOGSTATSD_PORT/DD_DOGSTATSD_URL environment
defaulting takes effect when the caller omits them.service-check gains :timestamp, :cardinality, and :check-run-id options.event gains :cardinality and :priority (:normal/:low) options.set-metric gains a per-call :cardinality option.count, count-at, gauge, gauge-at, histogram, distribution) now dispatch on value type: integers use the long/int overloads (preserving precision above 2^53) and floating/ratio values use the double overloads (preserving fractional values). Previously fractional deltas were truncated to long.NonBlockingStatsDClientBuilder surface through client.:sample-rate and :cardinality options to metric functions.java-dogstatsd-client 4.4.5:
client, increment, decrement, count, gauge, histogram, distribution,
timing, set-metric, event, service-check.{:env "prod"}) or a seq of strings.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |