Skip to content

Commit

Permalink
Update noop.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Drutu authored Apr 28, 2022
1 parent 7854ca8 commit 457aec7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions metric/noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@ func NewNoopMeter() Meter {

type noopMeter struct{}

// AsyncInt64 creates a instrument that does not record any metrics
// AsyncInt64 creates a 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 a 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 a 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 a instrument that does not record any metrics.
func (noopMeter) SyncFloat64() syncfloat64.InstrumentProvider {
return nonrecordingSyncFloat64Instrument{}
}

// RegisterCallback creates a register callback that does not record any metrics
// RegisterCallback creates a register callback that does not record any metrics.
func (noopMeter) RegisterCallback([]instrument.Asynchronous, func(context.Context)) error {
return nil
}
Expand Down

0 comments on commit 457aec7

Please sign in to comment.