Liking cljdoc? Tell your friends :D

steffan-westcott.clj-otel.util

General utility functions.

General utility functions.
raw docstring

AsDurationcljprotocol

durationclj

(duration d)

Coerce to a Duration instance.

Coerce to a `Duration` instance.
source

AsQualifiedNamecljprotocol

qualified-nameclj

(qualified-name x)

Given a keyword or symbol, returns the name converted to follow OpenTelemetry conventions for attribute names; the name is converted to a snake_case string, where namespace and name are separated by .. Given any other type of argument, returns it as a snake_case string.

Given a keyword or symbol, returns the name converted to follow
OpenTelemetry conventions for attribute names; the name is converted to a
snake_case string, where namespace and name are separated by `.`. Given any
other type of argument, returns it as a snake_case string.
source

AsTimestampcljprotocol

timestampclj

(timestamp t)

Coerce Instant to a vector [amount ^TimeUnit unit].

Coerce `Instant` to a vector `[amount ^TimeUnit unit]`.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close