opentelemetry-erlang-contrib/instrumentation/opentelemetry_bandit/README.md

1.1 KiB

OpentelemetryBandit

EEF Observability WG project Hex.pm Build Status

Telemetry handler that creates Opentelemetry spans from Bandit events.

After installing, setup the handler in your application behaviour before your top-level supervisor starts.

OpentelemetryBandit.setup()

When phoenix is used, setup telemetry this way:

OpentelemetryBandit.setup()
OpentelemetryPhoenix.setup(adapter: :bandit)

Compatibility Matrix

OpentelemetryPhoenix Version Otel Version Notes
v0.1.4 v1.0

Installation

def deps do
  [
    {:opentelemetry_bandit, "~> 0.1.4"}
  ]
end