UNPKG

1.06 kBTypeScriptView Raw
1import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '@sentry/types';
2/**
3 * A Sentry Span that is non-recording, meaning it will not be sent to Sentry.
4 */
5export declare class SentryNonRecordingSpan implements Span {
6 private _traceId;
7 private _spanId;
8 constructor(spanContext?: SentrySpanArguments);
9 /** @inheritdoc */
10 spanContext(): SpanContextData;
11 /** @inheritdoc */
12 end(_timestamp?: SpanTimeInput): void;
13 /** @inheritdoc */
14 setAttribute(_key: string, _value: SpanAttributeValue | undefined): this;
15 /** @inheritdoc */
16 setAttributes(_values: SpanAttributes): this;
17 /** @inheritdoc */
18 setStatus(_status: SpanStatus): this;
19 /** @inheritdoc */
20 updateName(_name: string): this;
21 /** @inheritdoc */
22 isRecording(): boolean;
23 /** @inheritdoc */
24 addEvent(_name: string, _attributesOrStartTime?: SpanAttributes | SpanTimeInput, _startTime?: SpanTimeInput): this;
25}
26//# sourceMappingURL=sentryNonRecordingSpan.d.ts.map
\No newline at end of file