File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func ExampleNewCounterVecT_multiple_labels_manual() {
51
51
52
52
c := promsafe .NewCounterVecT (prometheus.CounterOpts {
53
53
Name : "items_counted_detailed" ,
54
- }, & MyCounterLabels {} )
54
+ }, new ( MyCounterLabels ) )
55
55
56
56
// Manually register the counter
57
57
if err := prometheus .Register (c .Unsafe ()); err != nil {
@@ -86,7 +86,7 @@ func ExampleNewCounterVecT_promauto_migrated() {
86
86
EventType string
87
87
Source string
88
88
}
89
- c := promsafe .WithAuto (myReg ).NewCounterVecT (counterOpts , & TicketReservationAttemptsLabels {} )
89
+ c := promsafe .WithAuto (myReg ).NewCounterVecT (counterOpts , new ( TicketReservationAttemptsLabels ) )
90
90
91
91
c .With (& TicketReservationAttemptsLabels {
92
92
EventType : "reservation" , Source : "source1" ,
@@ -121,7 +121,7 @@ func ExampleNewCounterVecT_promauto_global_migrated() {
121
121
Status string
122
122
Source string
123
123
}
124
- c := promsafe .NewCounterVecT (counterOpts , & TicketReservationAttemptsLabels {} )
124
+ c := promsafe .NewCounterVecT (counterOpts , new ( TicketReservationAttemptsLabels ) )
125
125
126
126
c .With (& TicketReservationAttemptsLabels {
127
127
Status : "active" , Source : "source1" ,
You can’t perform that action at this time.
0 commit comments