reportValue method

void reportValue(
  1. String key,
  2. double value
)

Records a numeric KPI as a span attribute under vunet.action.<key> (not the OpenTelemetry Metrics API).

Implementation

void reportValue(String key, double value) {
  final span = _activeSpan();
  if (span == null) return;
  span.setAttribute(Attribute.fromDouble(_actionAttrKey(key), value));
}