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

biconsumerclj

(biconsumer f)

Returns a BiConsumer implementation for function f that takes 2 args and the result is discarded.

Returns a `BiConsumer` implementation for function `f` that takes 2 args
and the result is discarded.
sourceraw docstring

fn-nameclj

(fn-name)

Returns the name of the currently executing function, using the StackWalker API first available in Java 9. If StackWalker is not available, returns nil; (doto (Throwable.) .fillInStackTrace) is not used to examine the stack, as that has poor performance with deep stacks.

Returns the name of the currently executing function, using the StackWalker
API first available in Java 9. If `StackWalker` is not available, returns
nil; `(doto (Throwable.) .fillInStackTrace)` is not used to examine the
stack, as that has poor performance with deep stacks.
sourceraw docstring

functionclj

(function f)

Returns a Function implementation for function f that takes one arg.

Returns a `Function` implementation for function `f` that takes one arg.
sourceraw docstring

supplierclj

(supplier f)

Returns a Supplier implementation for function f that takes no args.

Returns a `Supplier` implementation for function `f` that takes no args.
sourceraw docstring

unwrap-cf-exceptionclj

(unwrap-cf-exception e)

Unwraps an exception thrown from a CompletableFuture.

Unwraps an exception thrown from a `CompletableFuture`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close