BeforeSendTransactionCallback typedef

BeforeSendTransactionCallback = FutureOr<SentryTransaction?> Function(SentryTransaction transaction)

This function is called with an SDK specific transaction object and can return a modified transaction object or nothing to skip reporting the transaction

Implementation

typedef BeforeSendTransactionCallback = FutureOr<SentryTransaction?> Function(
  SentryTransaction transaction,
);