edgepulse_core 0.1.0
edgepulse_core: ^0.1.0 copied to clipboard
Pure Dart core for EdgePulse — data models, metric collectors, exporters, and PulseRunner.
example/edgepulse_core_example.dart
// ignore_for_file: avoid_print
import 'package:edgepulse_core/edgepulse_core.dart';
Future<void> main() async {
final pulse = EdgePulse.mock();
await pulse.initialize();
final traces = await pulse.traceMany(
modelId: 'example-model',
modelFormat: 'mock',
runs: 3,
run: () async {
await Future<void>.delayed(const Duration(milliseconds: 50));
},
);
print('Captured ${traces.length} traces');
print(pulse.exportJson(traces));
await pulse.dispose();
}