Metric42
Constructors
counterconstRepresents a Counter metric that tracks cumulative numerical values over time.frequencyconstCreates a Frequency metric which can be used to count the number of occurrences of a string.gaugeconstRepresents a Gauge metric that tracks and reports a single numerical value at a specific moment.histogramconstRepresents a Histogram metric that records observations into buckets.summaryconstCreates a Summary metric that records observations and calculates quantiles which takes a value as input and uses the current time.summaryWithTimestampconstCreates a Summary metric that records observations with explicit timestamps and calculates quantiles.timerconstCreates a timer metric, based on a Histogram, which keeps track of durations in milliseconds.Models
Guards
Getters
Mapping
Mutations
Attributes
Boundaries
boundariesFromIterableconstCreates histogram bucket boundaries from an iterable set of values.exponentialBoundariesconstCreates histogram bucket boundaries with exponentially increasing values.linearBoundariesconstCreates histogram bucket boundaries from a linear sequence and appends positive infinity.Counter
Debugging
Input
Metrics
CounterinterfaceA Counter metric that tracks cumulative values that typically only increase.disableRuntimeMetricsconstDisables automatic collection of fiber runtime metrics for the provided Effect.disableRuntimeMetricsLayerconstLayer that disables automatic collection of fiber runtime metrics.enableRuntimeMetricsconstEnables automatic collection of fiber runtime metrics for the provided Effect.enableRuntimeMetricsLayerconstLayer that enables automatic collection of fiber runtime metrics across an entire Effect application.FiberRuntimeMetricsImplconstDefault implementation of the fiber runtime metrics service.FiberRuntimeMetricsKeyconstService key for the fiber runtime metrics service.FiberRuntimeMetricsServiceinterfaceInterface for the fiber runtime metrics service that tracks fiber lifecycle events.FrequencyinterfaceA Frequency metric interface that counts occurrences of discrete string values.FrequencyStateinterfaceState interface for Frequency metrics containing occurrence counts for discrete string values.GaugeinterfaceA Gauge metric that tracks instantaneous values that can go up or down.GaugeStateinterfaceState interface for Gauge metrics containing the current instantaneous value.HistograminterfaceA Histogram metric that records observations in configurable buckets to analyze value distributions.HistogramStateinterfaceState interface for Histogram metrics containing bucket distributions and aggregate statistics.SummaryinterfaceA Summary metric that calculates quantiles over a sliding time window of observations.SummaryStateinterfaceState interface for Summary metrics containing quantile calculations and aggregate statistics.