Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1 KB

datadog.md

File metadata and controls

51 lines (33 loc) · 1 KB

Datadog notifier

This notifier sends error events to Datadog using the Dogapi gem.

Usage

Just add the Dogapi gem to your Gemfile:

gem 'dogapi'

To use datadog notifier, you first need to create a Dogapi::Client with your datadog api and application keys, like this:

client = Dogapi::Client.new(api_key, application_key)

You then need to set the client option, like this:

Rails.application.config.middleware.use ExceptionNotification::Rack,
  email: {
    email_prefix: "[PREFIX] ",
    sender_address: %{"notifier" <[email protected]>},
    exception_recipients: %w{[email protected]}
  },
  datadog: {
    client: client
  }

Options

client

DogApi::Client, required

The API client to send events to Datadog.

title_prefix

String, optional

Prefix for event title in Datadog.

tags

Array of Strings, optional

Optional tags for events in Datadog.