Skip to content

Commit f7d358e

Browse files
committed
update naming and comments of flag
1 parent 6369c35 commit f7d358e

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

dart/lib/src/sentry.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Sentry {
8484
options.addIntegrationByIndex(0, IsolateErrorIntegration());
8585
}
8686

87-
if (options.enablePureDartSymbolication) {
87+
if (options.enableDartSymbolication) {
8888
options.addIntegration(LoadDartDebugImagesIntegration());
8989
}
9090

dart/lib/src/sentry_options.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,15 @@ class SentryOptions {
358358
_ignoredExceptionsForType.contains(exception.runtimeType);
359359
}
360360

361-
/// If enabled, the SDK will attempt to symbolicate pure Dart stack traces when
362-
/// used in Flutter. This feature works on Flutter iOS, macOS and Android.
363-
/// Due to automatic debug image loading from the native SDKs
364-
/// this flag is automatically set to false in `SentryFlutter.init`.
365-
bool enablePureDartSymbolication = true;
361+
/// Enables Dart symbolication for stack traces in Flutter.
362+
///
363+
/// If true, the SDK will attempt to symbolicate Dart stack traces when
364+
/// [Sentry.init] is used instead of `SentryFlutter.init`. This is useful
365+
/// when native debug images are not available.
366+
///
367+
/// Automatically set to `false` when using `SentryFlutter.init`, as it uses
368+
/// native SDKs for setting up symbolication on iOS, macOS, and Android.
369+
bool enableDartSymbolication = true;
366370

367371
@internal
368372
late ClientReportRecorder recorder = NoOpClientReportRecorder();

dart/test/sentry_options_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,6 @@ void main() {
196196
test('enablePureDartSymbolication is enabled by default', () {
197197
final options = SentryOptions(dsn: fakeDsn);
198198

199-
expect(options.enablePureDartSymbolication, true);
199+
expect(options.enableDartSymbolication, true);
200200
});
201201
}

flutter/lib/src/sentry_flutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ mixin SentryFlutter {
181181
integrations.add(NativeSdkIntegration(native));
182182
integrations.add(LoadContextsIntegration(native));
183183
integrations.add(LoadNativeDebugImagesIntegration(native));
184-
options.enablePureDartSymbolication = false;
184+
options.enableDartSymbolication = false;
185185
}
186186

187187
final renderer = options.rendererWrapper.getRenderer();

flutter/test/sentry_flutter_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ void main() {
636636
options.dsn = fakeDsn;
637637
options.automatedTestMode = true;
638638

639-
expect(options.enablePureDartSymbolication, false);
639+
expect(options.enableDartSymbolication, false);
640640
},
641641
appRunner: appRunner,
642642
platformChecker: getPlatformChecker(

0 commit comments

Comments
 (0)