Skip to content

Commit 9be3678

Browse files
committed
fix(hub): Make startTimestamp parameter optional in NoOpHub's startSpan method
Updated the startSpan method in the NoOpHub class to ensure the startTimestamp parameter is optional, enhancing flexibility in span creation. This change aligns with the asynchronous nature of span handling introduced in previous commits.
1 parent 2234aa8 commit 9be3678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/dart/lib/src/noop_hub.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ class NoOpHub implements Hub {
178178
String name, Future<T> Function(SentrySpanV2 span) callback,
179179
{Map<String, SentryAttribute>? attributes,
180180
SentrySpanV2? parentSpan = const UnsetSentrySpanV2(),
181-
DateTime? startTimestamp}) {
181+
DateTime? startTimestamp}) async {
182182
return callback(NoOpSentrySpanV2.instance);
183183
}
184184

185185
@override
186186
T startSpanSync<T>(String name, T Function(SentrySpanV2 span) callback,
187187
{Map<String, SentryAttribute>? attributes,
188188
SentrySpanV2? parentSpan = const UnsetSentrySpanV2(),
189-
DateTime? startTimestamp}) {
189+
DateTime? startTimestamp}) async {
190190
return callback(NoOpSentrySpanV2.instance);
191191
}
192192

0 commit comments

Comments
 (0)