renovate/lib/instrumentation/types.ts
RahulGautamSingh 1013302e0f
refactor: exactOptionalPropertyTypes (#20761)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-03-19 16:09:46 +00:00

26 lines
525 B
TypeScript

import type { Attributes, SpanKind } from '@opentelemetry/api';
/**
* The instrumentation decorator parameters.
*/
export interface SpanParameters {
/**
* The name of the span
*/
name: string;
/**
* Attributes which should be added to the span
*/
attributes?: Attributes | undefined;
/**
* Should this span be added to the root span or to the current active span
*/
ignoreParentSpan?: boolean;
/**
* Type of span this represents. Default: SpanKind.Internal
*/
kind?: SpanKind;
}