mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-24 03:00:39 +08:00
23 lines
716 B
TypeScript
23 lines
716 B
TypeScript
import { TimeInput } from '../common/Time';
|
|
import { SpanAttributes } from './attributes';
|
|
import { Link } from './link';
|
|
import { SpanKind } from './span_kind';
|
|
/**
|
|
* Options needed for span creation
|
|
*/
|
|
export interface SpanOptions {
|
|
/**
|
|
* The SpanKind of a span
|
|
* @default {@link SpanKind.INTERNAL}
|
|
*/
|
|
kind?: SpanKind;
|
|
/** A span's attributes */
|
|
attributes?: SpanAttributes;
|
|
/** {@link Link}s span to other spans */
|
|
links?: Link[];
|
|
/** A manually specified start time for the created `Span` object. */
|
|
startTime?: TimeInput;
|
|
/** The new span should be a root span. (Ignore parent from context). */
|
|
root?: boolean;
|
|
}
|
|
//# sourceMappingURL=SpanOptions.d.ts.map
|