Liking cljdoc? Tell your friends :D

hive-compose.adapter.tempo

ITraceQuery over Grafana Tempo's HTTP API (grafana/otel-lgtm serves it on :3200): GET /api/search?q=<TraceQL>&start&end&limit, GET /api/traces/<id> and GET /ready. The JDK's java.net.http client, no other dependency; the answers are read by hive-compose.promote.trace.

Every failure is a Result, never a throw: :trace/unreachable (connect failed, timed out), :trace/http-error (a non-2xx status, with :status and the start of the :body), :trace/not-found (404 on a trace), :trace/bad-json (an answer that does not parse or has a shape it cannot read), :trace/bad-id (a trace id that is not hex), :trace/not-ready (a non-2xx /ready).

The request timeout bounds the wait for the response headers; Tempo's answers are small JSON, read whole.

ITraceQuery over Grafana Tempo's HTTP API (grafana/otel-lgtm serves it on
:3200): GET /api/search?q=<TraceQL>&start&end&limit, GET
/api/traces/<id> and GET /ready. The JDK's java.net.http client, no other
dependency; the answers are read by `hive-compose.promote.trace`.

Every failure is a Result, never a throw: :trace/unreachable (connect
failed, timed out), :trace/http-error (a non-2xx status, with :status and
the start of the :body), :trace/not-found (404 on a trace),
:trace/bad-json (an answer that does not parse or has a shape it cannot
read), :trace/bad-id (a trace id that is not hex), :trace/not-ready (a
non-2xx /ready).

The request timeout bounds the wait for the response headers; Tempo's
answers are small JSON, read whole.
raw docstring

defaultsclj

Connection settings when none are given.

Connection settings when none are given.
sourceraw docstring

make-queryclj

(make-query)
(make-query opts)

TempoQuery. opts (merged over defaults): :base-url, :connect-timeout-ms, :request-timeout-ms, :limit (the search limit when a query names none).

TempoQuery. `opts` (merged over `defaults`): :base-url, :connect-timeout-ms,
:request-timeout-ms, :limit (the search limit when a query names none).
sourceraw docstring

query-stringclj

(query-string params)

params ({name value}) as a URL query string, names sorted.

`params` ({name value}) as a URL query string, names sorted.
sourceraw docstring

urlclj

(url base-url path params)

base-url joined with path and params, one slash between them.

`base-url` joined with `path` and `params`, one slash between them.
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