@grow-codes/zipkin - v0.1.1
    Preparing search index...

    Class ZipkinClient

    Client for Zipkin (port 9411): health, ping and server version, plus the query API (query), the direct span reporter (reporter) and tracing setup (initTracing). close also shuts down every tracing handle created through this client.

    Index
    config: ZipkinConfig

    The immutable configuration.

    • Shuts down the tracing handles created through this client (flushing their batch processors), then releases connections. Idempotent.

      Returns Promise<void>

    • Liveness: GET /health → {"status":"UP"}. A 503 (DOWN, storage unavailable) gives healthy: false without retries. Never throws for an unhealthy or unreachable service (only CANCELLED and CONFIG).

      Parameters

      Returns Promise<HealthStatus>

    • Round trip through the query API and storage: GET /api/v2/services (through a gateway this also proves the auth headers). Returns the latency in ms.

      Parameters

      Returns Promise<number>

    • Server version (e.g. 3.6.1) from GET /info. Throws UnsupportedError when the server (or a gateway) does not report one.

      Parameters

      Returns Promise<string>