UNPKG

716 BTypeScriptView Raw
1import { TimeInput } from '../common/Time';
2import { SpanAttributes } from './attributes';
3import { Link } from './link';
4import { SpanKind } from './span_kind';
5/**
6 * Options needed for span creation
7 */
8export interface SpanOptions {
9 /**
10 * The SpanKind of a span
11 * @default {@link SpanKind.INTERNAL}
12 */
13 kind?: SpanKind;
14 /** A span's attributes */
15 attributes?: SpanAttributes;
16 /** {@link Link}s span to other spans */
17 links?: Link[];
18 /** A manually specified start time for the created `Span` object. */
19 startTime?: TimeInput;
20 /** The new span should be a root span. (Ignore parent from context). */
21 root?: boolean;
22}
23//# sourceMappingURL=SpanOptions.d.ts.map
\No newline at end of file