motivation: It is not currently possible to record floating point values via the swift-metrics API even if the metrics backend supports it. modifications: Adds a `FloatingPointCounter` type to allow users to accumulate non-integral metrics backed by a `FloatingPointCounterHandler`. Introduces a default implementation for creating and destroying `FloatingPointCounterHandler`s for metric backends that do not natively support floating point counters. On such backends, `FloatingPointCounter` is backed by a `AccumulatingRoundingFloatingPointCounter` which accumulates floating point values internally and record increments to a wrapped `CounterHandler` after crossing integer boundaries. result: Users can create `FloatingPointCounter`s to record floating point values and get enhanced behavior for backends that support floating point values. |
||
|---|---|---|
| .. | ||
| CoreMetrics | ||
| Metrics | ||