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

    Class JaegerRemoteSampler

    OpenTelemetry Sampler driven by Jaeger's remote sampling endpoint. Rule (same in every language): a per-operation strategy wins for a listed operation (span name); every other operation uses the service-level rateLimitingSampling when present, else probabilisticSampling (else defaultSamplingProbability). Probabilistic decisions are deterministic per trace id. Until the first strategy arrives, initialSamplingRate applies; a failed or malformed poll keeps the last good strategy.

    Use it as the root of a ParentBasedSampler (what initTracing({ remoteSampler }) does).

    Implements

    • Sampler
    Index
    initialSamplingRate: number
    pollIntervalMs: number
    samplingUrl: string
    serviceName: string
    • Stops polling and releases connections. Idempotent.

      Returns Promise<void>

    • Resolves after the first poll since start finished (successfully or not).

      Returns Promise<void>

    • The sampling decision for a new span (see the class description for the rule).

      Parameters

      • context: Context
      • traceId: string
      • spanName: string
      • _spanKind: SpanKind
      • _attributes: Attributes
      • _links: Link[]

      Returns SamplingResult

    • Alias of close (OpenTelemetry naming).

      Returns Promise<void>

    • Starts polling (first fetch immediately). Idempotent.

      Returns void

    • Returns the sampler name or short description with the configuration.

      Returns string