instrument_registry (instrument v1.0.0)
View SourceSummary
Functions
Returns the number of label sets dropped into the overflow bucket for Name since the registry started (or the metric was last registered).
Returns the overflow sentinel metric for Name, creating it on the first call. Also increments the dropped-cardinality counter for Name. Returns undefined if the parent metric does not exist.
Returns the number of distinct label sets currently cached for Name.
Returns the cached overflow sentinel metric for Name if one has been created, undefined otherwise.
Functions
-spec cardinality_dropped(term()) -> non_neg_integer().
Returns the number of label sets dropped into the overflow bucket for Name since the registry started (or the metric was last registered).
-spec collect_all() -> [map()].
-spec get_or_create_overflow(term()) -> #metric{name :: term(), handle :: term(), collect :: tuple(), description :: binary() | undefined, unit :: binary() | undefined, meter :: binary() | undefined, attributes :: map()} | undefined.
Returns the overflow sentinel metric for Name, creating it on the first call. Also increments the dropped-cardinality counter for Name. Returns undefined if the parent metric does not exist.
-spec label_count(term()) -> non_neg_integer().
Returns the number of distinct label sets currently cached for Name.
-spec overflow_sentinel(term()) -> #metric{name :: term(), handle :: term(), collect :: tuple(), description :: binary() | undefined, unit :: binary() | undefined, meter :: binary() | undefined, attributes :: map()} | undefined.
Returns the cached overflow sentinel metric for Name if one has been created, undefined otherwise.