Skip to content

Commit 31d6964

Browse files
committed
Update issues
1 parent 43baf55 commit 31d6964

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ _For more details about swift-metrics, check the GitHub repo [here](https://gith
1919

2020
To use SwiftPrometheus with swift-metrics, all the setup required is this:
2121
```swift
22-
import PrometheusMetrics // Auto imports Prometheus too, but adds the swift-metrics compatibility
22+
import Prometheus
23+
import PrometheusMetrics
2324
let myProm = PrometheusClient()
2425
MetricsSystem.bootstrap(myProm)
2526
```

Sources/PrometheusMetrics/PrometheusMetrics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private class MetricsGauge: RecorderHandler {
3939
}
4040

4141
func record(_ value: Double) {
42-
gauge.inc(value, labels)
42+
gauge.set(value, labels)
4343
}
4444
}
4545

0 commit comments

Comments
 (0)