end method
Implementation
void end({bool success = true}) {
if (_ended) return;
_ended = true;
_timer.stop();
if (!_allowed || _reporter._diagnostics.sessionId != _sessionId) return;
_reporter.record('operation', name, {
'operationId': id,
'phase': 'end',
'success': success,
'elapsedMs': _timer.elapsedMilliseconds,
if (actionId != null) 'actionId': actionId,
});
}