Skip to content

Commit 920cd13

Browse files
committed
Update
1 parent e0febd6 commit 920cd13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

flutter/lib/src/integrations/web_app_start_integration.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ class WebAppStartIntegration extends Integration<SentryFlutterOptions> {
2828
final startTimeStamp = hub.options.clock();
2929
// expose id so SentryFlutter.currentDisplay() can return something
3030
options.timeToDisplayTracker.transactionId = transactionContext.spanId;
31+
final transaction = hub.startTransactionWithContext(
32+
transactionContext,
33+
startTimestamp: startTimeStamp,
34+
);
3135

3236
_framesHandler.addPostFrameCallback((_) async {
3337
final endTimestamp = options.clock();
34-
final transaction = hub.startTransactionWithContext(
35-
transactionContext,
36-
startTimestamp: startTimeStamp,
37-
);
38-
3938
await options.timeToDisplayTracker.track(
4039
transaction,
4140
ttidEndTimestamp: endTimestamp,

0 commit comments

Comments
 (0)