@grow-codes/grafana-tempo - v0.1.1
    Preparing search index...

    Class TempoClient

    Client for Grafana Tempo's HTTP API (port 3200): health, ping, version, and the query API through TempoClient.query. Spans are sent with initTracing (OTLP).

    const client = TempoClient.fromEnv();
    const trace = await client.query.getTrace(traceId);
    await client.close();
    Index
    config: TempoConfig

    The immutable configuration.

    • Releases connections. Idempotent.

      Returns Promise<void>

    • Readiness: GET /ready (no tenant needed). ready → healthy; HTTP 503 while Tempo starts → unhealthy with details.reason; network errors → unreachable. Never throws for an unhealthy or unreachable service (only CANCELLED and CONFIG).

      Parameters

      Returns Promise<HealthStatus>

    • Tenant-aware round trip: GET /api/v2/search/tags?scope=intrinsic. Returns the latency in milliseconds. A multi-tenant Tempo without a tenant → AuthenticationError.

      Parameters

      Returns Promise<number>

    • GET /ready → true when ready, false while starting; throws on network errors.

      Parameters

      Returns Promise<boolean>

    • Server version ("3.1.1") from /api/status/buildinfo, falling back to the text of /status/version. UnsupportedError when neither reports one.

      Parameters

      Returns Promise<string>