Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - teodor-pripoae/opbeat: Opbeat client for Elixir

Opbeat client for Elixir. Contribute to teodor-pripoae/opbeat development by creating an account on GitHub.

Visit SiteGitHub - teodor-pripoae/opbeat: Opbeat client for Elixir

GitHub - teodor-pripoae/opbeat: Opbeat client for Elixir

Opbeat client for Elixir. Contribute to teodor-pripoae/opbeat development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

Opbeat

Elixir client for Opbeat.

##Installation

Add module to mix.exs

def application do
  [applications: [:logger, :opbeat]]
end

def deps do
  [{:opbeat, github: "teodor-pripoae/opbeat"}]
end

Add following settings to config.exs

config :opbeat, :auth,
  %{org_id: System.get_env("OPBEAT_ORG_ID"), \
    app_id: System.get_env("OPBEAT_APP_ID"), \
    app_secret: System.get_env("OPBEAT_APP_SECRET")}

By default Opbeat logging is disabled. You must enabled it for production.exs or staging.exs

config :opbeat, :enabled, true

##Usage

To report and error:

if Opbeat.Client.enabled do
  Opbeat.Client.report(e)
end

You can also pass options misc and extra as Map:

Opbeat.Client.report(e, %{mymisc: "Some Value"}, %{myextra: "aaaa"})

##TODO

  • add support for http connection info
  • more tests with VCR
  • show more stacktrace information so it can be formatted properly on opbeat
  • make requests with HTTPoison.AsyncResponse

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.