opentelemetry-erlang-contrib/instrumentation/opentelemetry_bandit
Artem Solomatin 5658c54eb9
Add bandit telemetry support for opentelemetry-phoenix (#249)
* Add bandit telemetry support for opentelemetry-phoenix

---------

Co-authored-by: Bryan Naegele <bryannaegele@users.noreply.github.com>
2024-02-18 15:36:01 -07:00
..
config Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
lib Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
test Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
.formatter.exs Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
.gitignore Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
CHANGELOG.md Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
LICENSE Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
README.md Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
mix.exs Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
mix.lock Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00

README.md

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