Skip to content

Commit f47c163

Browse files
authored
Fix: MetricSystem => MetricsSystem (#108)
1 parent d734701 commit f47c163

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Prometheus/Docs.docc/swift-metrics.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import Prometheus
4545

4646
func main() {
4747
let factory = PrometheusMetricsFactory()
48-
MetricSystem.bootstrap(factory)
48+
MetricsSystem.bootstrap(factory)
4949

5050
// the rest of your application code
5151
}
@@ -66,7 +66,7 @@ To use a different collector registry pass your ``PrometheusCollectorRegistry``
6666
```swift
6767
let registry = PrometheusCollectorRegistry()
6868
let factory = PrometheusMetricsFactory(registry: registry)
69-
MetricSystem.bootstrap(factory)
69+
MetricsSystem.bootstrap(factory)
7070
```
7171

7272
You can also overwrite the ``PrometheusMetricsFactory/registry`` by setting it explicitly:
@@ -75,7 +75,7 @@ You can also overwrite the ``PrometheusMetricsFactory/registry`` by setting it e
7575
let registry = PrometheusCollectorRegistry()
7676
var factory = PrometheusMetricsFactory()
7777
factory.registry = registry
78-
MetricSystem.bootstrap(factory)
78+
MetricsSystem.bootstrap(factory)
7979
```
8080

8181
### Modifying Swift metrics names and labels
@@ -93,7 +93,7 @@ factory.nameAndLabelSanitizer = { (name, labels)
9393
return (name, labels)
9494
}
9595
}
96-
MetricSystem.bootstrap(factory)
96+
MetricsSystem.bootstrap(factory)
9797

9898
// somewhere else
9999
Metrics.Counter(label: "my_counter") // will show up in Prometheus exports as `counter`
@@ -134,7 +134,7 @@ factory.defaultValueHistogramBuckets = [
134134
100,
135135
250,
136136
]
137-
MetricSystem.bootstrap(factory)
137+
MetricsSystem.bootstrap(factory)
138138

139139
// somewhere else
140140
Timer(label: "my_timer") // will use the buckets specified in `defaultDurationHistogramBuckets`

0 commit comments

Comments
 (0)