@@ -15,7 +15,6 @@ import 'sentry_exception_factory.dart';
15
15
import 'sentry_stack_trace_factory.dart' ;
16
16
import 'transport/noop_transport.dart' ;
17
17
import 'version.dart' ;
18
- import 'package:meta/meta.dart' as meta;
19
18
20
19
// TODO: shutdownTimeout, flushTimeoutMillis
21
20
// 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 {
199
198
/// Can return true to emit the metric, or false to drop it.
200
199
BeforeMetricCallback ? beforeMetricCallback;
201
200
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.
203
203
BeforeSendLogCallback ? beforeSendLog;
204
204
205
205
/// Sets the release. SDK will try to automatically configure a release out of the box
@@ -535,7 +535,9 @@ class SentryOptions {
535
535
/// This is opt-in, as it can lead to existing exception beeing grouped as new ones.
536
536
bool groupExceptions = false ;
537
537
538
- @meta .experimental
538
+ /// Enable to capture and send logs to Sentry.
539
+ ///
540
+ /// Disabled by default.
539
541
bool enableLogs = false ;
540
542
541
543
SentryOptions ({String ? dsn, Platform ? platform, RuntimeChecker ? checker}) {
@@ -667,7 +669,8 @@ typedef BeforeMetricCallback = bool Function(
667
669
Map <String , String >? tags,
668
670
});
669
671
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.
671
674
typedef BeforeSendLogCallback = SentryLog ? Function (SentryLog log);
672
675
673
676
/// Used to provide timestamp for logging.
0 commit comments