1 | import { SpanKind, SpanStatus, SpanAttributes, HrTime, Link, SpanContext } from '@opentelemetry/api';
|
2 | import { Resource } from '@opentelemetry/resources';
|
3 | import { InstrumentationLibrary } from '@opentelemetry/core';
|
4 | import { TimedEvent } from '../TimedEvent';
|
5 | export 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 |
|
\ | No newline at end of file |