ex_rollbar v0.1.3 ExRollbar
Error handling for RollBar.
Summary
Functions
Reports an item to RollBar.
levelcan be one of :error, :warn, :info, :debugvaluecan be a Exception struct or a stringstack_traceis the result ofSystem.stack_trace()metais 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.
levelcan be one of :error, :warn, :info, :debugvaluecan be a Exception struct or a stringstack_traceis the result ofSystem.stack_trace()metais 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_emailperson_username
Custom Object
customa (jsonable) map of custom data.
Logger
enable_logger(boolean) enable logger backend
Framework
frameworkIE “Nerves”
Code Version
code_versiona git sha or similar.