This notifier sends error events to Datadog using the Dogapi gem.
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
}
DogApi::Client, required
The API client to send events to Datadog.
String, optional
Prefix for event title in Datadog.
Array of Strings, optional
Optional tags for events in Datadog.