@@ -61,7 +61,7 @@ npx @sentry/wizard@latest -i flutter
6161
6262Configuration should happen as early as possible in your application's lifecycle.
6363
64- ``` dart {"onboardingOptions": {"performance": "11-13", "profiling": "14-17"}}
64+ ``` dart
6565import 'package:flutter/widgets.dart';
6666import 'package:sentry_flutter/sentry_flutter.dart';
6767
@@ -72,13 +72,17 @@ Future<void> main() async {
7272 // Adds request headers and IP for users,
7373 // visit: https://docs.sentry.io/platforms/dart/guides/flutter/data-management/data-collected/ for more info
7474 options.sendDefaultPii = true;
75+ // ___PRODUCT_OPTION_START___ performance
7576 // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
7677 // We recommend adjusting this value in production.
7778 options.tracesSampleRate = 1.0;
79+ // ___PRODUCT_OPTION_END___ performance
80+ // ___PRODUCT_OPTION_START___ profiling
7881 // The sampling rate for profiling is relative to tracesSampleRate
7982 // Setting to 1.0 will profile 100% of sampled transactions:
8083 // Note: Profiling alpha is available for iOS and macOS since SDK version 7.12.0
8184 options.profilesSampleRate = 1.0;
85+ // ___PRODUCT_OPTION_END___ profiling
8286 },
8387 appRunner: () => runApp(
8488 SentryWidget(
@@ -92,7 +96,7 @@ Future<void> main() async {
9296}
9397```
9498
95- ``` dart {tabTitle:With custom zone} {"onboardingOptions": {"performance": "19-21", "profiling": "22-25"}}
99+ ``` dart {tabTitle:With custom zone}
96100import 'package:flutter/widgets.dart';
97101import 'package:sentry_flutter/sentry_flutter.dart';
98102
@@ -111,13 +115,17 @@ Future<void> main() async {
111115 // Adds request headers and IP for users,
112116 // visit: https://docs.sentry.io/platforms/dart/guides/flutter/data-management/data-collected/ for more info
113117 options.sendDefaultPii = true;
118+ // ___PRODUCT_OPTION_START___ performance
114119 // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
115120 // We recommend adjusting this value in production.
116121 options.tracesSampleRate = 1.0;
122+ // ___PRODUCT_OPTION_END___ performance
123+ // ___PRODUCT_OPTION_START___ profiling
117124 // The sampling rate for profiling is relative to tracesSampleRate
118125 // Setting to 1.0 will profile 100% of sampled transactions:
119126 // Note: Profiling alpha is available for iOS and macOS since SDK version 7.12.0
120127 options.profilesSampleRate = 1.0;
128+ // ___PRODUCT_OPTION_END___ profiling
121129 },
122130 appRunner: () => runApp(
123131 SentryWidget(
0 commit comments