Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

feat: deprecate Sampler #166

Merged
merged 2 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/trace/Sampler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { SamplingResult } from './SamplingResult';
import { SpanKind } from './span_kind';

/**
* @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.
dyladan marked this conversation as resolved.
Show resolved Hide resolved
* 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.
Expand Down
2 changes: 2 additions & 0 deletions src/trace/SamplingResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand Down