UNPKG

@ogcio/o11y-sdk-node

Version:

Opentelemetry standard instrumentation SDK for NodeJS based project

11 lines (10 loc) 617 B
import { type Attributes, type Context, type Link, SpanKind } from "@opentelemetry/api"; import { type Sampler, type SamplingResult } from "@opentelemetry/sdk-trace-base"; import type { SamplerCondition } from "./index.js"; export declare class UrlSampler implements Sampler { private readonly _samplerCondition; private readonly _nextSampler; constructor(samplerCondition: SamplerCondition[] | undefined, nextSampler: Sampler); shouldSample(_context: Context, traceId: string, _spanName: string, _spanKind: SpanKind, attributes: Attributes, _links: Link[]): SamplingResult; toString(): string; }