UNPKG

@opentelemetry/sdk-trace-base

Version:
21 lines 567 B
"use strict"; /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AlwaysOffSampler = void 0; const Sampler_1 = require("../Sampler"); /** Sampler that samples no traces. */ class AlwaysOffSampler { shouldSample() { return { decision: Sampler_1.SamplingDecision.NOT_RECORD, }; } toString() { return 'AlwaysOffSampler'; } } exports.AlwaysOffSampler = AlwaysOffSampler; //# sourceMappingURL=AlwaysOffSampler.js.map