ObserverWeb.Tracer.Tool.Collect (Observer Web v0.2.8)

View Source

Collects samples per key, for tools that aggregate values before reporting (e.g. the Duration tool's sum/avg/min/max/dist aggregation modes).

Ported from https://github.com/gabiz/tracer's Tracer.Collect.

Summary

Types

t()

@type t() :: %ObserverWeb.Tracer.Tool.Collect{
  collections: %{optional(term()) => list()}
}

Functions

add_sample(state, key, value)

@spec add_sample(t(), term(), term()) :: t()

get_collections(collect)

@spec get_collections(t()) :: [{term(), list()}]

new()

@spec new() :: t()