Skip to content

Commit 58535ae

Browse files
committed
remove experimental, add comments
1 parent 1a206f4 commit 58535ae

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dart/lib/src/sentry_options.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import 'sentry_exception_factory.dart';
1515
import 'sentry_stack_trace_factory.dart';
1616
import 'transport/noop_transport.dart';
1717
import 'version.dart';
18-
import 'package:meta/meta.dart' as meta;
1918

2019
// TODO: shutdownTimeout, flushTimeoutMillis
2120
// https://api.dart.dev/stable/2.10.2/dart-io/HttpClient/close.html doesn't have a timeout param, we'd need to implement manually
@@ -199,7 +198,8 @@ class SentryOptions {
199198
/// Can return true to emit the metric, or false to drop it.
200199
BeforeMetricCallback? beforeMetricCallback;
201200

202-
@meta.experimental
201+
/// This function is called right before a log is about to be sent.
202+
/// Can return a modified log or null to drop the log.
203203
BeforeSendLogCallback? beforeSendLog;
204204

205205
/// Sets the release. SDK will try to automatically configure a release out of the box
@@ -535,7 +535,9 @@ class SentryOptions {
535535
/// This is opt-in, as it can lead to existing exception beeing grouped as new ones.
536536
bool groupExceptions = false;
537537

538-
@meta.experimental
538+
/// Enable to capture and send logs to Sentry.
539+
///
540+
/// Disabled by default.
539541
bool enableLogs = false;
540542

541543
SentryOptions({String? dsn, Platform? platform, RuntimeChecker? checker}) {
@@ -667,7 +669,8 @@ typedef BeforeMetricCallback = bool Function(
667669
Map<String, String>? tags,
668670
});
669671

670-
@meta.experimental
672+
/// This function is called right before a log is about to be sent.
673+
/// Can return a modified log or null to drop the log.
671674
typedef BeforeSendLogCallback = SentryLog? Function(SentryLog log);
672675

673676
/// Used to provide timestamp for logging.

0 commit comments

Comments
 (0)