Raxol.Terminal.TelemetryMetrics (Raxol v0.5.0)
View SourceExample integration of Telemetry.Metrics and TelemetryMetricsStatsd for Raxol terminal events.
Add this module to your supervision tree to automatically report terminal metrics to StatsD (or Datadog).
Usage
def start(_type, _args) do
children = [
{TelemetryMetricsStatsd, metrics: Raxol.Terminal.TelemetryMetrics.metrics(), formatter: :datadog}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
Richer Metrics Example
summary/2
for scroll delta (average scroll amount)counter/2
for mode changes, tagged by mode
Summary
Functions
Returns a list of Telemetry metrics for Raxol terminal events.