sentry_elixir v0.0.4 Sentry
Provides the basic functionality to submit a Sentry.Event
to the Sentry Service.
### Configuration
Add the following to your production config
config :sentry_elixir,
dsn: "https://public:secret@app.getsentry.com/1",
included_environments: [:prod],
environment_name: :prod,
tags: %{
env: "production"
}
### Capturing Exceptions
Simply calling capture_exception2
will send the event.
Sentry.capture_exception(my_exception)
### Configuring The Logger
Backend
See Sentry.Logger
Summary
Functions
Parses and submits an exception to Sentry if current environment is in included_environments
Parses and submits an exception to Sentry if current environment is in included_environments
Sends a Sentry.Event
Callback implementation for c:Application.start/2
Functions
Specs
capture_exception(Exception.t, Keyword.t) ::
{:ok, String.t} |
:error
Parses and submits an exception to Sentry if current environment is in included_environments.
Parses and submits an exception to Sentry if current environment is in included_environments.
Specs
send_event(%Sentry.Event{culprit: term, environment: term, event_id: term, exception: term, extra: term, level: term, message: term, platform: term, release: term, request: term, server_name: term, stacktrace: term, tags: term, timestamp: term, user: term}) ::
{:ok, String.t} |
:error
Sends a Sentry.Event