startTrace method

  1. @override
Future<Trace> startTrace(
  1. String name,
  2. String operation, {
  3. LogLevel? level = LogLevel.info,
})
override

Starts a trace with a specific name and operation.

Implementation

@override
Future<Trace> startTrace(
  String name,
  String operation, {
  LogLevel? level = LogLevel.info,
}) async {
  final traceFutures = providers
      .map((p) => p.startTrace(name, operation, level: level))
      .toList(growable: false);
  final traces = await Future.wait(traceFutures);

  return _CompositeTrace(traces, providers: providers);
}