Skip to content

Commit

Permalink
chore: fix a typo in TestMeterCreatesInstruments (#6015)
Browse files Browse the repository at this point in the history
updating histogram vars to histo from gauge

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
codeboten authored Dec 4, 2024
1 parent 2f0bf8e commit 01fe929
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/metric/meter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ func TestMeterCreatesInstruments(t *testing.T) {
{
name: "SyncInt64Histogram",
fn: func(t *testing.T, m metric.Meter) {
gauge, err := m.Int64Histogram("histogram")
histo, err := m.Int64Histogram("histogram")
assert.NoError(t, err)

gauge.Record(ctx, 7)
histo.Record(ctx, 7)
},
want: metricdata.Metrics{
Name: "histogram",
Expand Down Expand Up @@ -487,10 +487,10 @@ func TestMeterCreatesInstruments(t *testing.T) {
{
name: "SyncFloat64Histogram",
fn: func(t *testing.T, m metric.Meter) {
gauge, err := m.Float64Histogram("histogram")
histo, err := m.Float64Histogram("histogram")
assert.NoError(t, err)

gauge.Record(ctx, 7)
histo.Record(ctx, 7)
},
want: metricdata.Metrics{
Name: "histogram",
Expand Down

0 comments on commit 01fe929

Please sign in to comment.