Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fix #2991

Merged
merged 1 commit into from Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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