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, :debug
  • value can be a Exception struct or a string
  • stack_trace is the result of System.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 \\ [])

Reports an item to RollBar.

  • level can be one of :error, :warn, :info, :debug
  • value can be a Exception struct or a string
  • stack_trace is the result of System.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 data
  • request_meta - A request object from the rollbar docs
  • server_meta - A server object from the rollbar docs
  • client_meta - A client object from the rollbar docs
setup(args)
setup(Keyword.t) :: :ok | {:error, term}

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.