Skip to content

Commit f59ee0b

Browse files
committed
add flutter.mdx in configuration/sample-rate
1 parent 2291dd4 commit f59ee0b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```dart
2+
import 'package:flutter/widgets.dart';
3+
import 'package:sentry_flutter/sentry_flutter.dart';
4+
5+
Future<void> main() async {
6+
// Capture only 25% of events
7+
await SentryFlutter.init((options) => options.sampleRate = 0.25);
8+
}
9+
```

0 commit comments

Comments
 (0)