{"version":3,"sources":["../../../src/trace/NonRecordingSpan.ts"],"names":["NonRecordingSpan","_spanContext","INVALID_SPAN_CONTEXT","n","spanContext","setAttribute","_key","_value","_attributes","_name","addLink","_link","addLinks","_links","setStatus","_status","updateName","end","isRecording","_exception","_time"],"mappings":"qIA8BaA,IAAN,OA9BP,CAAA,OA8BaA,0DACZ,CAAA,WAA6BC,CAA4BC,EAAsBC,6CAAA,CAAA,CAAA,IAAlDF,CAAAA,YAAmD,CAGhFG,EAAAA,CAAAA,WAA2B,EAC1B,CAAA,WAAYH,CAAAA,YAIbI,CAAAA,YAAaC,CAAcC,EAAuB,CACjD,CAAA,CAAA,OAAO,kBAIMC,CAAmC,CAChD,SAAO,aAICC,CAAeD,CAAAA,CAAoC,CAC3D,CAAA,CAAA,WAGDE,CAAAA,OAAQC,CAAmB,CAC1B,SAAO,IAGRC,CAAAA,QAASC,CAAsB,CAC9B,CAAA,CAAA,OAAO,IAIRC,CAAAA,SAAUC,CAA2B,CACpC,CAAA,CAAA,OAAO,IAIRC,CAAAA,WAAgC,CAC/B,CAAA,CAAA,WAIDC,CAAAA,IAAgC,CAAC,CAGjCC,EAAAA,WAAuB,UAEvB,sBAGgBC,CAAuBC,CAAAA,CAAyB,CAAC,CAClE,EAAA","file":"NonRecordingSpan.cjs","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Exception } from '../common/Exception';\nimport type { TimeInput } from '../common/Time';\nimport type { SpanAttributes } from './attributes';\nimport { INVALID_SPAN_CONTEXT } from './invalid-span-constants';\nimport type { Span } from './span';\nimport type { SpanContext } from './span_context';\nimport type { SpanStatus } from './status';\nimport type { Link } from './link';\n\n/**\n * The NonRecordingSpan is the default {@link Span} that is used when no Span\n * implementation is available. All operations are no-op including context\n * propagation.\n */\nexport class NonRecordingSpan implements Span {\n\tconstructor(private readonly _spanContext: SpanContext = INVALID_SPAN_CONTEXT) {}\n\n\t// Returns a SpanContext.\n\tspanContext(): SpanContext {\n\t\treturn this._spanContext;\n\t}\n\n\t// By default does nothing\n\tsetAttribute(_key: string, _value: unknown): this {\n\t\treturn this;\n\t}\n\n\t// By default does nothing\n\tsetAttributes(_attributes: SpanAttributes): this {\n\t\treturn this;\n\t}\n\n\t// By default does nothing\n\taddEvent(_name: string, _attributes?: SpanAttributes): this {\n\t\treturn this;\n\t}\n\n\taddLink(_link: Link): this {\n\t\treturn this;\n\t}\n\n\taddLinks(_links: Link[]): this {\n\t\treturn this;\n\t}\n\n\t// By default does nothing\n\tsetStatus(_status: SpanStatus): this {\n\t\treturn this;\n\t}\n\n\t// By default does nothing\n\tupdateName(_name: string): this {\n\t\treturn this;\n\t}\n\n\t// By default does nothing\n\tend(_endTime?: TimeInput): void {}\n\n\t// isRecording always returns false for NonRecordingSpan.\n\tisRecording(): boolean {\n\t\treturn false;\n\t}\n\n\t// By default does nothing\n\trecordException(_exception: Exception, _time?: TimeInput): void {}\n}\n"]}