Skip to content

Commit a1073af

Browse files
buenaflorsmeubankcoolguyzone
authored
fix(flutter): add missing auto-enabled checks (#13053)
* update auto-enabled * slow and frozen not always auto * Update includes/dart-integrations/slow-and-frozen-frames-instrumentation.mdx Co-authored-by: Alex Krawiec <[email protected]> * Update includes/dart-integrations/index.mdx Co-authored-by: Alex Krawiec <[email protected]> --------- Co-authored-by: Steven Eubank <[email protected]> Co-authored-by: Steven Eubank <[email protected]> Co-authored-by: Alex Krawiec <[email protected]>
1 parent 774757e commit a1073af

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ The Sentry SDK uses integrations to hook into the functionality of popular libra
88

99
Integrations can automatically add error instrumentation, performance instrumentation, and/or extra context information to your application. Flutter builds on the Dart SDK, so all Dart integrations are available in Flutter as well.
1010

11-
## Available Integrations
1211

1312
<Include name="dart-integrations/index.mdx" />
1413

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
### Integrations
21

3-
| | **Auto Enabled** | **Errors** | **Tracing** | **Additional Context** |
2+
| **Integration** | **Auto <br /> Enabled** | **Errors** | **Tracing** | **Additional <br /> Context** |
43
| ----------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: |
5-
| [`App Start`](/platforms/dart/guides/flutter/integrations/app-start-instrumentation) | | || |
4+
| [`App Start`](/platforms/dart/guides/flutter/integrations/app-start-instrumentation) | | || |
65
| [`Asset Bundle`](/platforms/dart/guides/flutter/integrations/asset-bundle-instrumentation) | | || |
76
| [`Dio`](/platforms/dart/guides/flutter/integrations/dio) | ||||
87
| [`Drift`](/platforms/dart/guides/flutter/integrations/drift-instrumentation) | | || |
@@ -12,6 +11,12 @@
1211
| [`Isar`](/platforms/dart/guides/flutter/integrations/isar-instrumentation) | | || |
1312
| [`Logging`](/platforms/dart/guides/flutter/integrations/logging) | || ||
1413
| [`Routing`](/platforms/dart/guides/flutter/integrations/routing-instrumentation) | | |||
15-
| [`Slow and Frozen Frames`](/platforms/dart/guides/flutter/integrations/slow-and-frozen-frames-instrumentation) | | || |
14+
| [`Slow and Frozen Frames`](/platforms/dart/guides/flutter/integrations/slow-and-frozen-frames-instrumentation) | ✓ * | || |
1615
| [`Sqflite`](/platforms/dart/guides/flutter/integrations/sqflite-instrumentation) | | || |
17-
| [`User Interaction`](/platforms/dart/guides/flutter/integrations/user-interaction-instrumentation) | | |||
16+
| [`User Interaction`](/platforms/dart/guides/flutter/integrations/user-interaction-instrumentation) | | |||
17+
18+
<Alert>
19+
20+
*Slow and Frozen Frames* should work automatically, however if `WidgetsFlutterBinding` is initialized before `SentryFlutter.init`, then this instrumentation will not work automatically.
21+
22+
</Alert>

includes/dart-integrations/slow-and-frozen-frames-instrumentation.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ This instrumentation is automatically enabled through two integrations:
4141

4242
In most cases, no additional configuration is required.
4343

44+
<Alert>
45+
46+
If `WidgetsFlutterBinding` is initialized before `SentryFlutter.init`, then this instrumentation will not work automatically.
47+
48+
</Alert>
49+
4450
### Early Widgets Binding Initialization
4551

4652
If you need to initialize the widgets binding earlier than `SentryFlutter.init()`, you must call `SentryWidgetsFlutterBinding.ensureInitialized()` manually. Note that using a different custom binding will prevent this instrumentation from working properly.

0 commit comments

Comments
 (0)