Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module dedicated to observability, that is reporting information about what the program is doing in production to help us debugging it.
Specifically this module is dedicated to sending information that's already
been collected to external monitoring platforms, such as Bugsnag and
Honeycomb. To learn more about how this information is collected check out the
Internal
module in the `nri-prelude` package. That module also
defines and documents the TracingSpan
type, which is the data structure we use to
contain observability data we have collected.
Synopsis
Documentation
report :: Handler -> Text -> TracingSpan -> IO () Source #
report
takes a span containing all the tracing information we
collected for a single request and then reports it to all platforms we
enabled when creating this handler.
A handler for reporting to loggingmonitoringobservability platforms.
Settings for all supported reporters.
Settings | |
|
A helper type that combines all the different functions a specific reporter must implement in a single record.
We've defined this as a GADT so we don't need to expose the handler
and
settings
parameters on the type, meaning this type is defined as Reporter
rather than `Reporter settings handler`. This allows us to combine multiple
reporters in a list.
Reporter | |
|