diff --git a/lib/src/api/trace/nonrecording_span.dart b/lib/src/api/trace/nonrecording_span.dart index 444b5ad2..50a0303f 100644 --- a/lib/src/api/trace/nonrecording_span.dart +++ b/lib/src/api/trace/nonrecording_span.dart @@ -62,7 +62,5 @@ class NonRecordingSpan implements api.Span { api.InstrumentationLibrary get instrumentationLibrary => null; @override - void recordException(dynamic exception, {StackTrace stackTrace}) { - return; - } + void recordException(dynamic exception, {StackTrace stackTrace}) {} } diff --git a/lib/src/sdk/trace/tracer.dart b/lib/src/sdk/trace/tracer.dart index 90536551..4bbb6542 100644 --- a/lib/src/sdk/trace/tracer.dart +++ b/lib/src/sdk/trace/tracer.dart @@ -53,7 +53,7 @@ class Tracer implements api.Tracer { attributes: attributes); } - /// Records a span of the given [name] for the given asynchronous function + /// Records a span of the given [name] for the given function /// and marks the span as errored if an exception occurs. @override FutureOr trace(String name, FutureOr Function() fn,