TimelessMetricsDashboard.Reporter (timeless_metrics_dashboard v0.4.3)

Copy Markdown View Source

Telemetry reporter that writes Telemetry.Metrics events into a Timeless store.

The handler callback runs in the caller's process, so all hot-path operations are lock-free ETS writes. A periodic flush drains the buffer into Timeless via write_batch/2.

Options

  • :store (required) — Timeless store name (atom)
  • :metrics — list of Telemetry.Metrics structs (default: [])
  • :flush_interval — milliseconds between batch flushes (default: 10_000)
  • :prefix — metric name prefix (default: "telemetry")
  • :name — GenServer name (default: TimelessMetricsDashboard.Reporter)

Summary

Functions

Returns a specification to start this module under a supervisor.

Synchronous flush — drains the buffer immediately. Useful for testing.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

flush(name \\ __MODULE__)

Synchronous flush — drains the buffer immediately. Useful for testing.

start_link(opts)