scout_apm v0.2.5 ScoutApm.Internal.Metric

Store a single metric, that may contain aggregated data around many calls to that metric. Uniquely identified by type / name / desc / scope

Summary

Types

t()
t() :: %ScoutApm.Internal.Metric{backtrace: nil | [any], call_count: Integer, desc: nil | String.t, exclusive_time: ScoutApm.Internal.Duration.t, max_time: ScoutApm.Internal.Duration.t, min_time: ScoutApm.Internal.Duration.t, name: String.t, scope: nil | %{}, total_time: ScoutApm.Internal.Duration.t, type: String.t}

Functions

from_layer(layer, scope)
from_layer_as_summary(layer)
from_sampler_value(type, name, number)
merge(m1, m2)