setMeasurement method

  1. @override
void setMeasurement(
  1. String name,
  2. num value, {
  3. SentryMeasurementUnit? unit,
})
override

Set observed measurement for this span or transaction.

Implementation

@override
void setMeasurement(
  String name,
  num value, {
  SentryMeasurementUnit? unit,
}) {
  if (finished) {
    _hub.options.logger(SentryLevel.debug,
        "The span is already finished. Measurement $name cannot be set");
    return;
  }
  _tracer.setMeasurementFromChild(name, value, unit: unit);
}