finishSpan static method

Future<void> finishSpan(
  1. String spanId, {
  2. int? statusCode,
})

Acknowledges the completion of a task.

Implementation

static Future<void> finishSpan(String spanId, {int? statusCode}) async {
  return await channel.invokeMethod('tracingFinishSpan', {
    'spanId': spanId,
    if (statusCode != null) 'statusCode': statusCode,
  });
}