sentry v0.0.2 Sentry

Provides the basic functionality to submit a Sentry.Event to the Sentry Service.

### Configuration

Add the following to your production config

  config :sentry,
    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

Callback implementation for c:Application.start/2

Functions

capture_exception(exception, opts \\ [])

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.

capture_logger_message(message)

Specs

capture_logger_message(String.t) ::
  {:ok, String.t} |
  :error

Parses and submits an exception to Sentry if current environment is in included_environments.

send_event(event)

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

start(type, opts)

Callback implementation for c:Application.start/2.