Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / OTelHooks

Interface: OTelHooks

Defined in: layer4/otel-observability.ts:8

可选 OpenTelemetry 导出钩子;安装 @opentelemetry/api 后可传入真实 API 对象。

Properties

recordMetric?

optional recordMetric?: (name, value, attributes?) => void

Defined in: layer4/otel-observability.ts:13

Parameters

name

string

value

number

attributes?

Record<string, string>

Returns

void


startActiveSpan?

optional startActiveSpan?: (name, fn) => void

Defined in: layer4/otel-observability.ts:9

Parameters

name

string

fn

(span) => void

Returns

void

MIT Licensed