@@ -55,8 +55,8 @@ type Int64CountHandle struct {
5555
5656// RecordInt64Count records the int64 count value on the metrics recorder
5757// provided.
58- func (h * Int64CountHandle ) RecordInt64Count (recorder MetricsRecorder , labels [] Label , optionalLabels [] Label , incr int64 ) {
59- recorder .RecordIntCount (* h , labels , optionalLabels , incr )
58+ func (h Int64CountHandle ) RecordInt64Count (recorder MetricsRecorder , incr int64 , labels ... string ) {
59+ recorder .RecordIntCount (h , incr , labels ... )
6060}
6161
6262// Float64CountHandle is a typed handle for a float count instrument. This handle
@@ -68,8 +68,8 @@ type Float64CountHandle struct {
6868
6969// RecordFloat64Count records the float64 count value on the metrics recorder
7070// provided.
71- func (h * Float64CountHandle ) RecordFloat64Count (recorder MetricsRecorder , labels [] Label , optionalLabels [] Label , incr float64 ) {
72- recorder .RecordFloatCount (* h , labels , optionalLabels , incr )
71+ func (h Float64CountHandle ) RecordFloat64Count (recorder MetricsRecorder , incr float64 , labels ... string ) {
72+ recorder .RecordFloatCount (h , incr , labels ... )
7373}
7474
7575// Int64HistoHandle is a typed handle for an int histogram instrument. This
@@ -81,8 +81,8 @@ type Int64HistoHandle struct {
8181
8282// RecordInt64Histo records the int64 histo value on the metrics recorder
8383// provided.
84- func (h * Int64HistoHandle ) RecordInt64Histo (recorder MetricsRecorder , labels [] Label , optionalLabels [] Label , incr int64 ) {
85- recorder .RecordIntHisto (* h , labels , optionalLabels , incr )
84+ func (h Int64HistoHandle ) RecordInt64Histo (recorder MetricsRecorder , incr int64 , labels ... string ) {
85+ recorder .RecordIntHisto (h , incr , labels ... )
8686}
8787
8888// Float64HistoHandle is a typed handle for a float histogram instrument. This
@@ -94,8 +94,8 @@ type Float64HistoHandle struct {
9494
9595// RecordFloat64Histo records the float64 histo value on the metrics recorder
9696// provided.
97- func (h * Float64HistoHandle ) RecordFloat64Histo (recorder MetricsRecorder , labels [] Label , optionalLabels [] Label , incr float64 ) {
98- recorder .RecordFloatHisto (* h , labels , optionalLabels , incr )
97+ func (h Float64HistoHandle ) RecordFloat64Histo (recorder MetricsRecorder , incr float64 , labels ... string ) {
98+ recorder .RecordFloatHisto (h , incr , labels ... )
9999}
100100
101101// Int64GaugeHandle is a typed handle for an int gauge instrument. This handle
@@ -107,8 +107,8 @@ type Int64GaugeHandle struct {
107107
108108// RecordInt64Histo records the int64 histo value on the metrics recorder
109109// provided.
110- func (h * Int64GaugeHandle ) RecordInt64Gauge (recorder MetricsRecorder , labels [] Label , optionalLabels [] Label , incr int64 ) {
111- recorder .RecordIntGauge (* h , labels , optionalLabels , incr )
110+ func (h Int64GaugeHandle ) RecordInt64Gauge (recorder MetricsRecorder , incr int64 , labels ... string ) {
111+ recorder .RecordIntGauge (h , incr , labels ... )
112112}
113113
114114// registeredInsts are the registered instrument descriptor names.
0 commit comments