class Sentry::ErrorEvent
ErrorEvent represents error or normal message events.
def add_exception_interface(exception)
def add_exception_interface(exception) if exception.respond_to?(:sentry_context) @extra.merge!(exception.sentry_context) end @exception = Sentry::ExceptionInterface.build(exception: exception, stacktrace_builder: @stacktrace_builder) end
def add_threads_interface(backtrace: nil, **options)
def add_threads_interface(backtrace: nil, **options) @threads = ThreadsInterface.build( backtrace: backtrace, stacktrace_builder: @stacktrace_builder, **options ) end
def to_hash
-
(Hash)
-
def to_hash data = super data[:threads] = threads.to_hash if threads data[:exception] = exception.to_hash if exception data end