{"version":3,"file":"AlwaysOffSampler.mjs","names":[],"sources":["../../src/sampler/AlwaysOffSampler.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Sampler, SamplingResult } from '../Sampler';\nimport { SamplingDecision } from '../Sampler';\n\n/** Sampler that samples no traces. */\nexport class AlwaysOffSampler implements Sampler {\n  shouldSample(): SamplingResult {\n    return {\n      decision: SamplingDecision.NOT_RECORD,\n    };\n  }\n\n  toString(): string {\n    return 'AlwaysOffSampler';\n  }\n}\n"],"mappings":";;;AASA,IAAa,mBAAb,MAAiD;CAC/C,eAA+B;EAC7B,OAAO,EACL,UAAA,EACF;CACF;CAEA,WAAmB;EACjB,OAAO;CACT;AACF"}