OpentelemetryStatifier.Oban.Handler (OpentelemetryStatifier v0.3.0)

Copy Markdown View Source

The :telemetry handler attached to every name OpentelemetryStatifier.Oban.events/0 returns.

Two clauses do the whole family, because the contract has exactly two seams and no pairs: a scheduling event lands on the macrostep span open in the emitting process, and a delivery event becomes its own span linked to the arming trace. The defensive posture is OpentelemetryStatifier.Handler's - no try/rescue, exhaustive clauses, a catch-all that drops rather than raises inside a host's Oban worker.

Summary

Functions

handle_event(event, measurements, metadata, config)

@spec handle_event(
  :telemetry.event_name(),
  map(),
  map(),
  OpentelemetryStatifier.Config.t()
) :: :ok