Skip to content

Commit

Permalink
Fix type error in float64 instrument docs (#5302)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored May 6, 2024
1 parent 36bee93 commit f8840b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions metric/asyncfloat64.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Float64ObservableCounter interface {
}

// Float64ObservableCounterConfig contains options for asynchronous counter
// instruments that record int64 values.
// instruments that record float64 values.
type Float64ObservableCounterConfig struct {
description string
unit string
Expand Down Expand Up @@ -97,7 +97,7 @@ type Float64ObservableUpDownCounter interface {
}

// Float64ObservableUpDownCounterConfig contains options for asynchronous
// counter instruments that record int64 values.
// counter instruments that record float64 values.
type Float64ObservableUpDownCounterConfig struct {
description string
unit string
Expand Down Expand Up @@ -154,7 +154,7 @@ type Float64ObservableGauge interface {
}

// Float64ObservableGaugeConfig contains options for asynchronous counter
// instruments that record int64 values.
// instruments that record float64 values.
type Float64ObservableGaugeConfig struct {
description string
unit string
Expand Down
6 changes: 3 additions & 3 deletions metric/syncfloat64.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Float64Counter interface {
}

// Float64CounterConfig contains options for synchronous counter instruments that
// record int64 values.
// record float64 values.
type Float64CounterConfig struct {
description string
unit string
Expand Down Expand Up @@ -81,7 +81,7 @@ type Float64UpDownCounter interface {
}

// Float64UpDownCounterConfig contains options for synchronous counter
// instruments that record int64 values.
// instruments that record float64 values.
type Float64UpDownCounterConfig struct {
description string
unit string
Expand Down Expand Up @@ -134,7 +134,7 @@ type Float64Histogram interface {
}

// Float64HistogramConfig contains options for synchronous counter instruments
// that record int64 values.
// that record float64 values.
type Float64HistogramConfig struct {
description string
unit string
Expand Down

0 comments on commit f8840b9

Please sign in to comment.