We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SentryTracer
1 parent 7b4ce83 commit a8bff7dCopy full SHA for a8bff7d
CHANGELOG.md
@@ -2,6 +2,9 @@
2
3
## Unreleased
4
5
+### Improvements
6
+
7
+- Check for type before casting in TTID ([#2497](https://github.com/getsentry/sentry-dart/pull/2497))
8
9
### Fixes
10
flutter/lib/src/navigation/time_to_initial_display_tracker.dart
@@ -51,11 +51,13 @@ class TimeToInitialDisplayTracker {
51
final _endTimestamp = endTimestamp ?? await determineEndTime();
52
if (_endTimestamp == null) return;
53
54
- final tracer = transaction as SentryTracer;
+ if (transaction is! SentryTracer) {
55
+ return;
56
+ }
57
58
final ttidSpan = transaction.startChild(
59
SentrySpanOperations.uiTimeToInitialDisplay,
- description: '${tracer.name} initial display',
60
+ description: '${transaction.name} initial display',
61
startTimestamp: startTimestamp,
62
);
63
0 commit comments