Skip to content

Commit c9fee02

Browse files
authored
Fix dart code snippet format (#7043)
`Sentry.init` accepts a callback function as an argument, so everything inside `{}` is a function flow, not an object. So every line should end with `;` and not `,`.
1 parent 48dfe31 commit c9fee02

File tree

1 file changed

+3
-3
lines changed
  • src/platform-includes/performance/configure-sample-rate

1 file changed

+3
-3
lines changed

src/platform-includes/performance/configure-sample-rate/dart.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import 'package:sentry/sentry.dart';
33
44
Sentry.init((options) => {
5-
options.dsn = '___PUBLIC_DSN___',
5+
options.dsn = '___PUBLIC_DSN___';
66
// To set a uniform sample rate
7-
options.tracesSampleRate = 1.0,
7+
options.tracesSampleRate = 1.0;
88
// OR if you prefer, determine traces sample rate based on the sampling context
99
options.tracesSampler = (samplingContext) {
1010
// return a number between 0 and 1 or null (to fallback to configured value)
11-
},
11+
};
1212
});
1313
```

0 commit comments

Comments
 (0)