Skip to content

flutter: Add note to app start integration #13479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions includes/dart-integrations/app-start-instrumentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ Before starting, ensure:

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

<Alert>

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.

```dart
// ignore: implementation_imports
import 'package:sentry_flutter/src/integrations/native_app_start_integration.dart';

// in SentryFlutter.init
final integration = options.integrations.firstWhere(
(integration) => integration is NativeAppStartIntegration);
options.removeIntegration(integration);
```

</Alert>

## Verify

### 1. Launch Your App:
Expand Down