opentelemetry-erlang-contrib/instrumentation/opentelemetry_bandit
Shadowfacts 85076ca8e4 Bandit: Start span when connection starts rather than retroactively
This ensures that spans created in application code are correctly
parented to the request span.
2024-04-23 21:14:31 -04:00
..
config Add bandit telemetry support for opentelemetry-phoenix (#249) 2024-02-18 15:36:01 -07:00
lib Bandit: Start span when connection starts rather than retroactively 2024-04-23 21:14:31 -04: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 chore(deps): update dependency req to ~> 0.4 (#291) 2024-02-18 15:41:30 -07:00
mix.lock chore(deps): update dependency req to ~> 0.4 (#291) 2024-02-18 15:41:30 -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