mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 00:56:26 +00:00
1013302e0f
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
26 lines
525 B
TypeScript
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;
|
|
}
|