toLines method
Compact metric lines suitable for replay/debug UIs.
Implementation
List<String> toLines({String? prefix}) {
final effectivePrefix = prefix ?? payload.report.prefix;
final lines = <String>[
'$effectivePrefix event: ${event.type}',
if (recordType != null || decisionType != null || result != null)
'$effectivePrefix source: '
'${recordType ?? 'unknown'} / ${decisionType ?? 'unknown'} / ${result ?? 'unknown'}',
...payload.report.toLines(),
];
return List<String>.unmodifiable(lines);
}