recordSpan<T> method

Future<T> recordSpan<T>(
  1. String name, {
  2. EmbraceSpan? parent,
  3. Map<String, String>? attributes,
  4. List<EmbraceSpanEvent>? events,
  5. required Future<T> code(),
})

Wraps some code in a start and stop span so you can measure the time it takes for the code to run

Implementation

Future<T> recordSpan<T>(
  String name, {
  EmbraceSpan? parent,
  Map<String, String>? attributes,
  List<EmbraceSpanEvent>? events,
  required Future<T> Function() code,
}) {
  throw UnimplementedError('Not implemented yet.');
}