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

    Class JaegerClient

    Client for Jaeger: health, ping and version of the query service, plus the query API (query), tracing setup (initTracing) and remote sampling (remoteSampler). close also shuts down every tracing handle and sampler created through this client.

    Index
    config: JaegerConfig

    The immutable configuration.

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

      Returns Promise<void>

    • Liveness of the query service: GET / on the query port (the stack catalog health target), without the token. With healthUrl set, the healthcheckv2 /status answer is added (healthy=false when it reports unhealthy). Never throws for an unhealthy or unreachable service (only CANCELLED and CONFIG).

      Parameters

      Returns Promise<HealthStatus>

    • Round trip through the query API: GET /api/v3/services. Returns the latency in ms.

      Parameters

      Returns Promise<number>

    • Server version without the leading v (e.g. 2.23.0): parsed from JAEGER_VERSION in the UI page, else from target_info{service_version=…} at metricsUrl. Throws UnsupportedError when neither source reports one (a 404 from either source is not NotFoundError).

      Parameters

      Returns Promise<string>