Skip to main content

Function: populateLocalMetrics()

function populateLocalMetrics(
  step: Span | Trace,
  localMetrics: LocalMetricConfig[],
): void;
Defined in: src/utils/metrics.ts Populates local metrics on a trace or span by computing scores client-side. This function recursively processes child spans and applies aggregator functions when applicable.

Parameters

step

The trace or span to populate metrics on Span | Trace

localMetrics

LocalMetricConfig[] List of local metric configurations to apply

Returns

void