nri-observability-0.1.0.1: Report log spans collected by nri-prelude.
Safe HaskellNone
LanguageHaskell2010

Reporter.Bugsnag

Description

This reporter sends tracing information for failing requests to Bugsnag, a platform for monitoring applications. Learn more about Bugsnag on their website:

https://www.bugsnag.com/

Synopsis

Documentation

data Handler Source #

Contextual information this reporter needs to do its work. You can create one using handler.

handler :: Settings -> IO Handler Source #

Create a Handler for a specified set of Settings. Do this once when your application starts and reuse the Handler you get.

data Settings Source #

Configuration settings for this reporter. A value of this type can be read from the environment using the decoder function.

decoder :: Decoder Settings Source #

Read Settings from environment variables. Default variables will be used in case no environment variable is set for an option.

apiKey :: Settings -> Secret ApiKey Source #

The Bugsnag API key to use. This determines which Bugsnag project your errors will end up in.

environment variable
LOG_FILE
default value
app.log

appName :: Settings -> Namespace Source #

The name of this application. This will be attached to all bugsnag reports.

environment variable
LOG_ROOT_NAMESPACE
default value
your-application-name-here

appEnvironment :: Settings -> Environment Source #

The environment this application is running in. This will be attached to all bugsnage reports.

environment variable
ENVIRONMENT
default value
development