core-telemetry-0.2.6.0: Advanced telemetry
Safe HaskellNone
LanguageHaskell2010

Core.Telemetry.Honeycomb

Description

A exporter backend that sends telemetry in the form of traces of your application's behaviour, or event data—accompanied either way by [conceivably very wide] additional metadata—to the Honeycomb observability service.

When specifying the honeycombExporter you have to specify certain command-line options and environment variables to enable it:

$ export HONEYCOMB_TEAM="62e3626a2cc34475adef4d799eca0407"
$ burger-service --telemetry=honeycomb --dataset=prod-restaurant-001

If you annotate your program with spans, you can get a trace like this:

Notice

This library is Open Source but the Honeycomb service is not. Honeycomb offers a free tier which is quite suitable for individual use and small local applications. In the future you may be able to look at Core.Telemetry.General if you instead want to forward to a generic OpenTelemetry provider.

Synopsis

Documentation

type Dataset = Rope Source #

Indicate which "dataset" spans and events will be posted into

honeycombExporter :: Exporter Source #

Configure your application to send telemetry in the form of spans and traces to the Honeycomb observability service.

    context <- configure ...
    context' <- initializeTelemetry [honeycombExporter] context
    executeWith context' ...