class LogStash::Outputs::Airbrake::Notice
Public Class Methods
new(opts = {})
click to toggle source
Calls superclass method
# File lib/logstash/outputs/airbrake.rb, line 82 def initialize(opts = {}) super(opts) @hostname = opts[:host] || 'unknown' # Airbrake uses the backtrace to aggregate notifications so we cheat and # create a dummy backtrace error_crc32 = Zlib::crc32(opts[:error_message].to_s) @backtrace = Airbrake::Backtrace.parse("#{error_crc32}:42:in `#{opts[:error_message].to_s}'") end