startTrace method

  1. @override
Future<AnalyticsTrace> startTrace(
  1. String name,
  2. String operation
)
override

Starts a trace with a specific name and operation.

Implementation

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

  return _CompositeAnalyticsTrace(traces, providers: providers);
}