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

Commit 313b2e2

Browse files
authored
feat: deprecate Sampler (#166)
1 parent 17ccb3a commit 313b2e2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/trace/Sampler.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { SamplingResult } from './SamplingResult';
2121
import { SpanKind } from './span_kind';
2222

2323
/**
24+
* @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.
2425
* This interface represent a sampler. Sampling is a mechanism to control the
2526
* noise and overhead introduced by OpenTelemetry by reducing the number of
2627
* samples of traces collected and sent to the backend.

src/trace/SamplingResult.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import { SpanAttributes } from './attributes';
1818

1919
/**
20+
* @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.
2021
* A sampling decision that determines how a {@link Span} will be recorded
2122
* and collected.
2223
*/
@@ -39,6 +40,7 @@ export enum SamplingDecision {
3940
}
4041

4142
/**
43+
* @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.
4244
* A sampling result contains a decision for a {@link Span} and additional
4345
* attributes the sampler would like to added to the Span.
4446
*/

0 commit comments

Comments
 (0)