swift-metrics/Sources/Examples
tomer doron 1f44332af3
refactor APIs to make them closer to swift-log APIs
motivation: after much discussion around logging API, we settled on a different API style, primairly the fact that we will use initializers instead of factories

changes:
* introduce intermediate classes for Counter, Timer and Recorder which are designed to replace the Metrics.makeCounter, Metrics.makeTimer and Metrics.makeRecorder APIs and wrap corresponding CounterHandler, TimerHandler and ReorderHandler coming from the metrics implmentation
* rename Metrics to MetricsSystem
* rename  MetricsHandler -> MetricsFactory
* remove Metrics.withCounter, Metrics.withTimer and Metrics.withRecorder syntactic sugar
* rename Metrics.timed with Timer.measure
* make sure metrics system can only be initialized/bootstrapped once per process
* adjust and add tests
* add a bit of docs on key APIs
2019-02-25 15:04:43 -08:00
..
Example1.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
ExampleMetricsLibrary.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
Quantiles.swift license 2019-02-21 19:47:50 -08:00
RandomLibrary.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
SimpleMetricsLibrary.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
main.swift license 2019-02-21 19:47:50 -08:00