module Bugsnag
Overview
Bugsnag
Defined in:
bugsnag.crConstant Summary
-
VERSION =
"0.1.0"
Class Method Summary
- .api_key : String
- .api_key=(api_key : String)
-
.notify(exception : ::Exception, request : HTTP::Request | Nil = nil, severity : Event::Severity = Event::Severity::Warning, context : String | Nil = nil, user : User | Nil = nil, session : Session | Nil = nil, unhandled : Bool = true, metadata : Metadata | Nil = nil, app : App | Nil = nil)
Notify Bugsnag of an exception
Class Method Detail
def self.notify(exception : ::Exception, request : HTTP::Request | Nil = nil, severity : Event::Severity = Event::Severity::Warning, context : String | Nil = nil, user : User | Nil = nil, session : Session | Nil = nil, unhandled : Bool = true, metadata : Metadata | Nil = nil, app : App | Nil = nil)
#
Notify Bugsnag of an exception
begin
handle(thing)
rescue ex
Bugsnag.notify ex,
severity: Bugsnag::Event::Severity::Error,
app: Bugsnag::App.new(
id: "my-app",
release_stage: ENV["DEPLOYMENT_ENVIRONMENT"]? || "development",
),
metadata: Bugsnag::Metadata{"thing" => thing.to_h}
end