Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Apr 24, 2024
1 parent 85e851b commit 58f2585
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions flutter/lib/src/integrations/native_app_start_integration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ class NativeAppStartIntegration extends Integration<SentryFlutterOptions> {
dartLoadingEnd: dartLoadingEnd);

setAppStartInfo(appStartInfo);

if (SentryNavigatorObserver.currentRouteName == null) {
const screenName = 'root /';
// ignore: invalid_use_of_internal_member
final transaction = hub.startTransaction(screenName, SentrySpanOperations.uiLoad,
startTimestamp: appStartInfo.start);
// ignore: invalid_use_of_internal_member
final ttidSpan = transaction.startChild(SentrySpanOperations.uiTimeToInitialDisplay,
description: '$screenName initial display',
startTimestamp: appStartInfo.start);
await ttidSpan.finish(endTimestamp: appStartInfo.end);
await transaction.finish(endTimestamp: appStartInfo.end);
}
});
}

Expand Down

0 comments on commit 58f2585

Please sign in to comment.