Skip to content

Commit 9301c5a

Browse files
committed
Merge remote-tracking branch 'origin/feat/span/change-futureor' into feat/span/change-futureor
2 parents 8d7fadb + 3eba4e6 commit 9301c5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/dart/lib/src/sentry.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ class Sentry {
391391
/// automatically when the returned future completes.
392392
///
393393
/// The span is set as the active span within the [callback]'s scope via
394-
/// zones, so any nested [startSpan] calls will automatically parent to it.
394+
/// zones, so any nested [startSpan] or [startSpanSync] calls will
395+
/// automatically parent to it.
395396
///
396397
/// If the [callback] throws or the returned future completes with an error,
397398
/// the span's status is set to [SentrySpanStatusV2.error] before ending.

packages/flutter/test/user_interaction/sentry_user_interaction_widget_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void main() {
658658
expect(firstSpan, isA<IdleRecordingSentrySpanV2>());
659659

660660
// Simulate descendant activity by starting a child span
661-
fixture.hub.startSpanSync('child-work', (span) {});
661+
fixture.hub.startSpanSync('child-work', (_) {});
662662

663663
await Future<void>.delayed(Duration.zero);
664664
// Tap a different widget

0 commit comments

Comments
 (0)