updateSpanName method

  1. @override
Future<bool> updateSpanName(
  1. String spanId,
  2. String name
)
override

Updates the name of an active span.

Implementation

@override
Future<bool> updateSpanName(String spanId, String name) async {
  throwIfNotStarted();
  return await methodChannel.invokeMethod(_updateSpanNameMethodName, {
    _spanIdArgName: spanId,
    _nameArgName: name,
  }) as bool;
}