ScoutApm.Internal.Metric (scout_apm v2.0.0)
Copy MarkdownStore a single metric, that may contain aggregated data around many calls to that metric. Uniquely identified by type / name / desc / scope
Summary
Types
@type 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
@spec from_layer(ScoutApm.Internal.Layer.t(), nil | map()) :: t()
@spec from_layer_as_summary(ScoutApm.Internal.Layer.t()) :: t()