Instance Method (Default implementation)swift-metrics 2.6.1CoreMetrics

makeFloatingPointCounter(label:dimensions:)

Create a default backing FloatingPointCounterHandler for backends which do not naively support floating point counters.

Metrics.swift:913
func makeFloatingPointCounter(label: String, dimensions: [(String, String)]) -> FloatingPointCounterHandler

Parameters

label

The label for the FloatingPointCounterHandler.

dimensions

The dimensions for the FloatingPointCounterHandler.

The created FloatingPointCounterHandler is a wrapper around a backend’s CounterHandler which accumulates floating point values and records increments to an underlying CounterHandler after crossing integer boundaries.