Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ref(dart): Remove unused beforeMetricCallback
Remove dead code that was never used in the codebase. The
BeforeMetricCallback typedef and beforeMetricCallback field
in SentryOptions had no references anywhere in the SDK.

Co-Authored-By: Claude <noreply@anthropic.com>
  • Loading branch information
buenaflor and claude committed Jan 27, 2026
commit 598c1e4017ec75ee2703411a8f3571ca0fadfe8e
11 changes: 0 additions & 11 deletions packages/dart/lib/src/sentry_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ class SentryOptions {
/// to the scope. When nothing is returned from the function, the breadcrumb is dropped
BeforeBreadcrumbCallback? beforeBreadcrumb;

/// This function is called right before a metric is about to be emitted.
Comment thread
cursor[bot] marked this conversation as resolved.
/// Can return true to emit the metric, or false to drop it.
BeforeMetricCallback? beforeMetricCallback;

/// This function is called right before a log is about to be sent.
/// Can return a modified log or null to drop the log.
BeforeSendLogCallback? beforeSendLog;
Expand Down Expand Up @@ -703,13 +699,6 @@ typedef BeforeBreadcrumbCallback = Breadcrumb? Function(
Hint hint,
);

/// This function is called right before a metric is about to be emitted.
/// Can return true to emit the metric, or false to drop it.
typedef BeforeMetricCallback = bool Function(
String key, {
Map<String, String>? tags,
});

/// This function is called right before a log is about to be sent.
/// Can return a modified log or null to drop the log.
typedef BeforeSendLogCallback = FutureOr<SentryLog?> Function(SentryLog log);
Expand Down
Loading