Skip to main content

TelemetryDecorators

@quik/telemetry


@quik/telemetry / TelemetryDecorators

Variable: TelemetryDecorators

TelemetryDecorators: object

Defined in: telemetry/src/decorators.ts:76

A collection of telemetry-related decorators.

Type Declaration

Span

Span: <This, Args, Return>(nameOrOptions?, options?) => (target, context) => (this, ...args) => any = SpanExecutor

Decorator factory that wraps method execution in a telemetry span.

Type Parameters

This

This extends QObject

The class the decorated method belongs to.

Args

Args extends any[]

The parameter types of the decorated method.

Return

Return

The return type of the decorated method.

Parameters

nameOrOptions?

SpanDecoratorInput

Optional span name or span options.

options?

TelemetrySpanOptions

Optional span options when providing a custom name.

Returns

(target, context) => (this, ...args) => any