OtelBridge.Supervisor (otel_bridge v0.2.2)

Copy Markdown View Source

Internal supervisor that assembles the otel_bridge runtime.

Applications typically start OtelBridge instead of this module directly.

It coordinates:

  1. metric definitions loaded from specs or raw metric lists
  2. the OtelBridge.Bridge process that attaches telemetry handlers
  3. the :telemetry_poller process for periodic measurements

Summary

Functions

Returns a specification to start this module under a supervisor.

Prepares metric definitions for the bridge runtime.

Starts the bridge supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

prepare_metrics(metrics)

Prepares metric definitions for the bridge runtime.

All currently supported shapes are kept, including Telemetry.Metrics.LastValue, which is translated through an observable gauge path in OtelBridge.Bridge.

start_link(opts)

Starts the bridge supervisor.