Skip to content

Commit 0e9c250

Browse files
committed
Update
1 parent 7394dca commit 0e9c250

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ This callback gives you fine-grained control over view hierarchy captures based
2727

2828
<Alert>
2929

30-
The `debounce` parameter is `true` if the debounce is active.
31-
If you want to capture view hierarchies regardless of the debounce, you can ignore the `debounce` parameter.
30+
The `shouldDebounce` parameter is `true` if the debounce is active.
31+
If you want to capture view hierarchies regardless of the debounce, you can ignore the `shouldDebounce` parameter.
3232

3333
</Alert>
3434

35-
```dart {tabTitle: 'Respect debounce'} {2-9}
35+
```dart {tabTitle: Respect debounce} {2-9}
3636
await SentryFlutter.init((options) {
37-
options.beforeCaptureViewHierarchy = (event, hint, debounce) async {
37+
options.beforeCaptureViewHierarchy = (event, hint, shouldDebounce) async {
3838
// If debounce is active, skip capturing
39-
if (debounce) {
39+
if (shouldDebounce) {
4040
return false;
4141
}
4242
// Capture view hierarchy if it's a fatal event
@@ -45,9 +45,9 @@ await SentryFlutter.init((options) {
4545
});
4646
```
4747

48-
```dart {tabTitle: 'Ignore debounce'} {2-4}
48+
```dart {tabTitle: Ignore debounce} {2-4}
4949
await SentryFlutter.init((options) {
50-
options.beforeCaptureViewHierarchy = (event, hint, debounce) async {
50+
options.beforeCaptureViewHierarchy = (event, hint, shouldDebounce) async {
5151
// Capture view hierarchy if it's a fatal event regardless of debounce
5252
return event.level == SentryLevel.fatal;
5353
};

docs/platforms/dart/guides/flutter/features/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,13 @@ Sentry supports Flutter Web as well, with the following limitations:
4646
- Stack traces aren't symbolicated when compiled using WebAssembly (WASM).
4747
- Stack traces are not symbolicated when loaded as a browser extension.
4848
- Offline caching isn't supported for exceptions.
49-
- <Link to="/product/releases/health">Release Health</Link> isn't supported.
50-
- Device context data isn't as rich on the web as it is on mobile.
5149

5250
**Desktop Limitations:**
5351

5452
Sentry supports Flutter on Linux and Windows as well, with the following limitations:
5553

5654
- Native crashes are not supported on Windows.
5755
- [Release Health](/product/releases/health/) isn't supported.
58-
- Device context data isn't as rich on Linux and Windows as it is on mobile.
5956

6057
When running on macOS, you can expect the same feature set as on iOS.
6158

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ This instrumentation is automatically enabled. There is no need for further conf
5050

5151
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.
5252

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-
6353
</Alert>
6454

6555
## Verify
@@ -75,3 +65,18 @@ Open the [sentry.io performance page](https://sentry.io/performance), find, and
7565
### 3. View App Start Metrics:
7666

7767
Select the event within your transaction. Sentry displays the app start metrics on the right side of the screen in the **Mobile Vitals** section.
68+
69+
## Disable App Start Instrumentation
70+
71+
To disable the app start instrumentation, you can remove the `NativeAppStartIntegration` from the `integrations` list in your `SentryFlutter.init` call.
72+
73+
```dart
74+
// ignore: implementation_imports
75+
import 'package:sentry_flutter/src/integrations/native_app_start_integration.dart';
76+
77+
await SentryFlutter.init((options) {
78+
final integration = options.integrations.firstWhere(
79+
(integration) => integration is NativeAppStartIntegration);
80+
options.removeIntegration(integration);
81+
});
82+
```

0 commit comments

Comments
 (0)