Method: Sentry::Configuration#before_send_transaction

Defined in:
lib/sentry/configuration.rb

#before_send_transactionProc

Optional Proc, called before sending an event to the server

Examples:

config.before_send_transaction = lambda do |event, hint|
  # skip unimportant transactions or strip sensitive data
  if event.transaction == "/healthcheck/route"
    nil
  else
    event
  end
end

Returns:

  • (Proc)

100
101
102
# File 'lib/sentry/configuration.rb', line 100

def before_send_transaction
  @before_send_transaction
end