finishSpan static method
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,
});
}