begin method

void begin({
  1. String? runId,
})

Emits a run-level begin record. Safe to call more than once.

Implementation

void begin({String? runId}) {
  if (_begun) return;
  _begun = true;
  _runId = runId ?? DateTime.now().toUtc().toIso8601String();
  _nextArtifactId = 0;
  _emitRecord({
    'event': 'begin',
    'runId': _runId,
  });
}