Skip to content

Commit e9195c7

Browse files
authored
flutter: Add note to app start integration (#13479)
Add note that in some cases app starts might not be accurate and should be disabled
1 parent 18e5114 commit e9195c7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

includes/dart-integrations/app-start-instrumentation.mdx

+16
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ Before starting, ensure:
4646

4747
This instrumentation is automatically enabled. There is no need for further configuration.
4848

49+
<Alert>
50+
51+
App start instrumentation is designed specifically for pure Flutter applications and requires UI rendering to function properly. If you're using Flutter in an add-to-app integration scenario, the app start metrics will not provide accurate measurements. In such cases, we recommend disabling this instrumentation.
52+
53+
```dart
54+
// ignore: implementation_imports
55+
import 'package:sentry_flutter/src/integrations/native_app_start_integration.dart';
56+
57+
// in SentryFlutter.init
58+
final integration = options.integrations.firstWhere(
59+
(integration) => integration is NativeAppStartIntegration);
60+
options.removeIntegration(integration);
61+
```
62+
63+
</Alert>
64+
4965
## Verify
5066

5167
### 1. Launch Your App:

0 commit comments

Comments
 (0)