scout_apm v0.2.10 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: non_neg_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(ScoutApm.Internal.Layer.t, nil | map) :: t
from_layer_as_summary(layer)
from_layer_as_summary(ScoutApm.Internal.Layer.t) :: t
from_sampler_value(type, name, number)
from_sampler_value(any, any, number) :: t
merge(m1, m2)
merge(t, t) :: t