Sum

class Sum(val value: Double, val monotonic: Boolean) : MetricValue

A delta sum over the collection interval, not a running total, because backends such as CloudWatch already aggregate within each period - a cumulative counter at 100 would publish 100 every minute and sum to 6000 over an idle hour. This differs from OpenTelemetry's default temporality.

Parameters

value

the delta. May be negative when monotonic is false.

monotonic

true for MonotonicCounter, false for UpDownCounter, for exporters that distinguish the two.

Constructors

Link copied to clipboard
constructor(value: Double, monotonic: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String