generateW3cTraceparent method

  1. @override
Future<String?> generateW3cTraceparent(
  1. String? traceId,
  2. String? spanId
)
override

Generates a W3C Traceparent.

Implementation

@override
Future<String?> generateW3cTraceparent(
  String? traceId,
  String? spanId,
) async {
  throwIfNotStarted();
  return methodChannel.invokeMethod(_generateW3cTraceparentMethodName, {
    _traceIdArgName: traceId,
    _spanIdArgName: spanId,
  });
}