Class TempoQueryClient

java.lang.Object
codes.grow.packages.tempo.TempoQueryClient
All Implemented Interfaces:
TraceQueryClient, AutoCloseable

public final class TempoQueryClient extends Object implements TraceQueryClient, AutoCloseable
Client for Tempo's HTTP query API (port 3200). Implements the SPEC TraceQueryClient (getTrace, searchTraces, listServices, listOperations, getDependencies, waitForTrace) plus Tempo's own search (TraceQL), searchTags, searchTagValues, traceQLMetrics, echo(), ready() and buildInfo().

Get one from TempoClient.query(), or build an owned one with create(TempoConfig) / fromEnv() (close() then closes its client). The tenant (X-Scope-OrgID) comes from the config. Every method has a blocking form and an …Async form returning CompletableFuture.

Tempo shows a trace by id immediately after ingest, but search, tags and metrics only after about 30 seconds.