OtelBridge.Supervisor (otel_bridge v0.1.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.

Filters out metric shapes that the bridge intentionally leaves to observable instruments or custom handling.

Starts the bridge supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

prepare_metrics(metrics)

Filters out metric shapes that the bridge intentionally leaves to observable instruments or custom handling.

For example, Telemetry.Metrics.LastValue is excluded from the default runtime path because it usually needs observer-style behavior rather than the synchronous event-to-instrument flow used by this bridge.

start_link(opts)

Starts the bridge supervisor.