Method: Sentry::Configuration#before_send

Defined in:
lib/sentry/configuration.rb

#before_sendProc

Optional Proc, called before sending an event to the server

Examples:

config.before_send = lambda do |event, hint|
  # skip ZeroDivisionError exceptions
  # note: hint[:exception] would be a String if you use async callback
  if hint[:exception].is_a?(ZeroDivisionError)
    nil
  else
    event
  end
end

Returns:

  • (Proc)
[View source]

87
88
89
# File 'lib/sentry/configuration.rb', line 87

def before_send
  @before_send
end