30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
/*
|
|
* Copyright The OpenTelemetry Authors
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
/**
|
|
* @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.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
export var SamplingDecision;
|
|
(function (SamplingDecision) {
|
|
/**
|
|
* `Span.isRecording() === false`, span will not be recorded and all events
|
|
* and attributes will be dropped.
|
|
*/
|
|
SamplingDecision[SamplingDecision["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
/**
|
|
* `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}
|
|
* MUST NOT be set.
|
|
*/
|
|
SamplingDecision[SamplingDecision["RECORD"] = 1] = "RECORD";
|
|
/**
|
|
* `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}
|
|
* MUST be set.
|
|
*/
|
|
SamplingDecision[SamplingDecision["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
|
})(SamplingDecision || (SamplingDecision = {}));
|
|
//# sourceMappingURL=SamplingResult.js.map
|