ex_rollbar v0.1.0 ExRollbar
Error handling for RollBar.
Summary
Functions
Reports an item to RollBar.
level
can be one of :error, :warn, :info, :debugvalue
can be a Exception struct or a stringstack_trace
is the result ofSystem.stack_trace()
meta
is a bucket of extra key/value data
Sets up ExRollbar
args must contain at least these keys:
access_token
environment
Functions
report(level, value, stack_trace, meta \\ [])
report(ExRollbar.RestAPI.Payload.Data.level, Exception.t | binary, Exception.stack_trace, Keyword.t) :: no_return
Reports an item to RollBar.
level
can be one of :error, :warn, :info, :debugvalue
can be a Exception struct or a stringstack_trace
is the result ofSystem.stack_trace()
meta
is a bucket of extra key/value data.
Meta
Can contain any of:
uuid
- a uuid (generated automatically)timstamp
- a unix timestamp (generated automatically)context
- a context object.custom
- any jsonable map of extra datarequest_meta
- A request object from the rollbar docsserver_meta
- A server object from the rollbar docsclient_meta
- A client object from the rollbar docs
Sets up ExRollbar
args must contain at least these keys:
access_token
environment
args may also contain:
Person Object
person_id
, (Required to use the Person object)person_email
person_username
Custom Object
custom
a (jsonable) map of custom data.
Logger
enable_logger
(boolean) enable logger backend
Framework
framework
IE “Nerves”
Code Version
code_version
a git sha or similar.