diff --git a/src/trace/Sampler.ts b/src/trace/Sampler.ts index 0b48196..b7a1d37 100644 --- a/src/trace/Sampler.ts +++ b/src/trace/Sampler.ts @@ -21,6 +21,7 @@ import { SamplingResult } from './SamplingResult'; import { SpanKind } from './span_kind'; /** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. * This interface represent a sampler. Sampling is a mechanism to control the * noise and overhead introduced by OpenTelemetry by reducing the number of * samples of traces collected and sent to the backend. diff --git a/src/trace/SamplingResult.ts b/src/trace/SamplingResult.ts index 2688733..3038eec 100644 --- a/src/trace/SamplingResult.ts +++ b/src/trace/SamplingResult.ts @@ -17,6 +17,7 @@ import { SpanAttributes } from './attributes'; /** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. * A sampling decision that determines how a {@link Span} will be recorded * and collected. */ @@ -39,6 +40,7 @@ export enum SamplingDecision { } /** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. * A sampling result contains a decision for a {@link Span} and additional * attributes the sampler would like to added to the Span. */