UNPKG

827 BTypeScriptView Raw
1import { SpanKind, SpanStatus, SpanAttributes, HrTime, Link, SpanContext } from '@opentelemetry/api';
2import { Resource } from '@opentelemetry/resources';
3import { InstrumentationLibrary } from '@opentelemetry/core';
4import { TimedEvent } from '../TimedEvent';
5export interface ReadableSpan {
6 readonly name: string;
7 readonly kind: SpanKind;
8 readonly spanContext: () => SpanContext;
9 readonly parentSpanId?: string;
10 readonly startTime: HrTime;
11 readonly endTime: HrTime;
12 readonly status: SpanStatus;
13 readonly attributes: SpanAttributes;
14 readonly links: Link[];
15 readonly events: TimedEvent[];
16 readonly duration: HrTime;
17 readonly ended: boolean;
18 readonly resource: Resource;
19 readonly instrumentationLibrary: InstrumentationLibrary;
20}
21//# sourceMappingURL=ReadableSpan.d.ts.map
\No newline at end of file