swift-metrics/Tests/MetricsTests
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
..
CoreMetricsTests.swift Allow providing a custom MetricsFactory to Counter and friends (#172) 2025-04-29 15:07:30 +02:00
MetricsTests.swift Add `Timer.measure` methods (#140) 2025-03-10 10:46:27 +01:00
TestSendable.swift Migrate to GitHub Actions (#151) 2024-11-06 22:32:20 +09:00