View Source Chaperon.Scenario.Metrics (chaperon v0.3.1)

This module calculates histogram data for a session's metrics. It uses the Histogrex library to calculate the histograms.

Link to this section Summary

Functions

Replaces base metrics for a given session with the histogram values for them.

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

@type filter() :: (metric() -> boolean()) | MapSet.t(metric_type())
@type metric() :: atom() | {atom(), any()}
@type metric_type() :: atom()

Link to this section Functions

Link to this function

add_histogram_metrics(session)

View Source
@spec add_histogram_metrics(Chaperon.Session.t()) :: Chaperon.Session.t()

Replaces base metrics for a given session with the histogram values for them.

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec config(Keyword.t()) :: filter()
@spec get_names() :: [atom()]

Callback implementation for GenServer.init/1.

Link to this function

passes_filter?(types, type)

View Source