Skip to content

Commit

Permalink
typo fix (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Petrie committed Jul 5, 2022
1 parent c2dc940 commit 376973c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion metric/instrument/asyncfloat64/asyncfloat64.go
Expand Up @@ -45,7 +45,7 @@ type Counter interface {
instrument.Asynchronous
}

// UpDownCounter is an instrument that records increasing or decresing values.
// UpDownCounter is an instrument that records increasing or decreasing values.
type UpDownCounter interface {
// Observe records the state of the instrument.
//
Expand Down
2 changes: 1 addition & 1 deletion metric/instrument/asyncint64/asyncint64.go
Expand Up @@ -45,7 +45,7 @@ type Counter interface {
instrument.Asynchronous
}

// UpDownCounter is an instrument that records increasing or decresing values.
// UpDownCounter is an instrument that records increasing or decreasing values.
type UpDownCounter interface {
// Observe records the state of the instrument.
//
Expand Down
2 changes: 1 addition & 1 deletion metric/instrument/config.go
Expand Up @@ -27,7 +27,7 @@ func (cfg Config) Description() string {
return cfg.description
}

// Unit describes the measurement unit for a instrument.
// Unit describes the measurement unit for an instrument.
func (cfg Config) Unit() unit.Unit {
return cfg.unit
}
Expand Down
2 changes: 1 addition & 1 deletion metric/instrument/syncfloat64/syncfloat64.go
Expand Up @@ -39,7 +39,7 @@ type Counter interface {
instrument.Synchronous
}

// UpDownCounter is an instrument that records increasing or decresing values.
// UpDownCounter is an instrument that records increasing or decreasing values.
type UpDownCounter interface {
// Add records a change to the counter.
Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)
Expand Down
2 changes: 1 addition & 1 deletion metric/instrument/syncint64/syncint64.go
Expand Up @@ -39,7 +39,7 @@ type Counter interface {
instrument.Synchronous
}

// UpDownCounter is an instrument that records increasing or decresing values.
// UpDownCounter is an instrument that records increasing or decreasing values.
type UpDownCounter interface {
// Add records a change to the counter.
Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Expand Down
2 changes: 1 addition & 1 deletion metric/internal/global/state_test.go
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// htmp://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
8 changes: 4 additions & 4 deletions metric/noop.go
Expand Up @@ -43,22 +43,22 @@ func NewNoopMeter() Meter {

type noopMeter struct{}

// AsyncInt64 creates a instrument that does not record any metrics.
// AsyncInt64 creates an instrument that does not record any metrics.
func (noopMeter) AsyncInt64() asyncint64.InstrumentProvider {
return nonrecordingAsyncInt64Instrument{}
}

// AsyncFloat64 creates a instrument that does not record any metrics.
// AsyncFloat64 creates an instrument that does not record any metrics.
func (noopMeter) AsyncFloat64() asyncfloat64.InstrumentProvider {
return nonrecordingAsyncFloat64Instrument{}
}

// SyncInt64 creates a instrument that does not record any metrics.
// SyncInt64 creates an instrument that does not record any metrics.
func (noopMeter) SyncInt64() syncint64.InstrumentProvider {
return nonrecordingSyncInt64Instrument{}
}

// SyncFloat64 creates a instrument that does not record any metrics.
// SyncFloat64 creates an instrument that does not record any metrics.
func (noopMeter) SyncFloat64() syncfloat64.InstrumentProvider {
return nonrecordingSyncFloat64Instrument{}
}
Expand Down

0 comments on commit 376973c

Please sign in to comment.