swift-metrics/Sources/CoreMetrics
Honza Dvorsky 98d36172c1
Allow providing a custom MetricsFactory to Counter and friends (#172)
### Motivation:

To allow for things like parallel testing, it'd be useful if we can
explicitly provide a MetricsFactory to the existing Counter/... types.

### Modifications:

Added a `factory: MetricsFactory` parameter to all the initializers of
Counter/... types, and kept the existing methods that continue to
default to `MetricsSystem.factory`.

### Result:

Adopters can use a custom MetricsFactory explicitly passed in at metric
creation time. Existing adopters are not affected, unless you opt in,
you continue to use the global factory.
2025-04-29 15:07:30 +02:00
..
Docs.docc Tell the truth about the supported metric types (#161) 2025-01-31 14:31:14 +00:00
Locks.swift Android support (#159) 2025-01-09 22:49:28 +01:00
Metrics.swift Allow providing a custom MetricsFactory to Counter and friends (#172) 2025-04-29 15:07:30 +02:00