Skip to content

Commit 645207e

Browse files
authored
Review feedback!
1 parent bd31546 commit 645207e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Counters go up (they can only increase in value), and reset when the process res
4545
let counter = myProm.createCounter(forType: Int.self, named: "my_counter")
4646
counter.inc() // Increment by 1
4747
counter.inc(12) // Increment by given value
48-
counter.reset() // Set the value back to 0
4948
```
5049

5150
## Gauge
@@ -77,30 +76,6 @@ let summary = myProm.createSummary(forType: Double.self, named: "my_summary")
7776
summary.observe(4.7) // Observe the given value
7877
```
7978

80-
## Info
81-
82-
Info tracks key-value information, usually about a whole target. These are typically helpful details like git sha or other metadata.
83-
84-
```swift
85-
struct MyInfoStruct: MetricLabels {
86-
let value: String
87-
88-
init() {
89-
self.value = "abc"
90-
}
91-
92-
init(_ v: String) {
93-
self.value = v
94-
}
95-
}
96-
97-
let info = myProm.createInfo(named: "my_info", helpText: "Just some info", labelType: MyInfoStruct.self)
98-
99-
let info = prom.createInfo(named: "my_info", helpText: "Just some info", labelType: MyInfoStruct.self)
100-
101-
info.info(MyInfoStruct("def"))
102-
```
103-
10479
## Labels
10580
All metric types support adding labels, allowing for grouping of related metrics.
10681

0 commit comments

Comments
 (0)