UNPKG

@embrace-io/web-sdk

Version:
46 lines (45 loc) 931 B
import { INVALID_SPAN_CONTEXT } from "@opentelemetry/api"; //#region src/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.ts var NonRecordingExtendedSpan = class { _spanContext; constructor(_spanContext = INVALID_SPAN_CONTEXT) { this._spanContext = _spanContext; } attributes = {}; fail(_options) {} spanContext() { return this._spanContext; } setAttribute(_key, _value) { return this; } setAttributes(_attributes) { return this; } removeAttribute(_key) { return this; } addEvent(_name, _attributesOrStartTime, _startTime) { return this; } addLink(_link) { return this; } addLinks(_links) { return this; } setStatus(_status) { return this; } updateName(_name) { return this; } end(_endTime) {} isRecording() { return false; } recordException(_exception, _time) {} }; //#endregion export { NonRecordingExtendedSpan }; //# sourceMappingURL=NonRecordingExtendedSpan.js.map