View Source Beeline.Honeycomb (BeelineHoneycomb v1.0.2)

A Honeycomb.io exporter for Beeline telemetry

This exporter works by attaching a :telemetry handler with :telemetry.attach/4. This attaches a function to handle events to each Beeline.HealthChecker process. The work of creating and emitting the event to Honeycomb is done in the HealthChecker process.

This module defines a module-based Task which can be started in a supervision tree. For example, in your MyApp.Application's start/2 function, you can add this module to the list of children:

def start(_type, _args) do
  children = [
    {Beeline.Honeycomb, []},
    {MyApp.MyBeelineTopology, []}
  ]
  opts = [strategy: :one_for_one, name: MyApp.Supervisor]
  Supervisor.start_link(children, opts)
end

options

Options

The Opencensus.Honeycomb.Event :samplerate key can be configured in the keyword list passed to start_link/1 or as the list in {Beeline.Honeycomb, []}. :samplerate should be a positive integer and is defaulted to 1, meaning that all events are recorded. See the Opencensus.Honeycomb.Event.t/0 documentation for more information.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

arg is passed as the argument to Task.start_link/1 in the :start field of the spec.

For more information, see the Supervisor module, the Supervisor.child_spec/2 function and the Supervisor.child_spec/0 type.