Skip to content

Commit 80a733d

Browse files
committed
fix tests
1 parent d7c6010 commit 80a733d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/promsafe/safe_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func ExampleNewCounterVecT_multiple_labels_manual() {
3737
}
3838

3939
c := promsafe.NewCounterVecT(prometheus.CounterOpts{
40-
Name: "items_counted",
40+
Name: "items_counted_detailed",
4141
}, &MyCounterLabels{})
4242

4343
// Manually register the counter
@@ -62,7 +62,7 @@ func ExampleNewCounterVecT_promauto_migrated() {
6262
var myReg = prometheus.NewRegistry()
6363

6464
counterOpts := prometheus.CounterOpts{
65-
Name: "items_counted",
65+
Name: "items_counted_detailed_auto",
6666
}
6767

6868
// Old unsafe code
@@ -93,7 +93,7 @@ func ExampleNewCounterVecT_promauto_global_migrated() {
9393
promsafe.SetupGlobalPromauto()
9494

9595
counterOpts := prometheus.CounterOpts{
96-
Name: "items_counted",
96+
Name: "items_counted_detailed_auto_global",
9797
}
9898

9999
// Old code:

0 commit comments

Comments
 (0)