UNPKG

1.04 kBTypeScriptView Raw
1import { Exception } from '../common/Exception';
2import { TimeInput } from '../common/Time';
3import { SpanAttributes } from './attributes';
4import { Span } from './span';
5import { SpanContext } from './span_context';
6import { SpanStatus } from './status';
7/**
8 * The NonRecordingSpan is the default {@link Span} that is used when no Span
9 * implementation is available. All operations are no-op including context
10 * propagation.
11 */
12export declare class NonRecordingSpan implements Span {
13 private readonly _spanContext;
14 constructor(_spanContext?: SpanContext);
15 spanContext(): SpanContext;
16 setAttribute(_key: string, _value: unknown): this;
17 setAttributes(_attributes: SpanAttributes): this;
18 addEvent(_name: string, _attributes?: SpanAttributes): this;
19 setStatus(_status: SpanStatus): this;
20 updateName(_name: string): this;
21 end(_endTime?: TimeInput): void;
22 isRecording(): boolean;
23 recordException(_exception: Exception, _time?: TimeInput): void;
24}
25//# sourceMappingURL=NonRecordingSpan.d.ts.map
\No newline at end of file