Source File
noop.go
Belonging Package
go.opentelemetry.io/otel/api/metric
package metric
import (
)
type NoopProvider struct{}
type noopInstrument struct{}
type noopBoundInstrument struct{}
type NoopSync struct{ noopInstrument }
type NoopAsync struct{ noopInstrument }
var _ Provider = NoopProvider{}
var _ SyncImpl = NoopSync{}
var _ BoundSyncImpl = noopBoundInstrument{}
var _ AsyncImpl = NoopAsync{}
func (NoopProvider) ( string, ...MeterOption) Meter {
return Meter{}
}
func (noopInstrument) () interface{} {
return nil
}
func (noopInstrument) () Descriptor {
return Descriptor{}
}
func (noopBoundInstrument) (context.Context, Number) {
}
func (noopBoundInstrument) () {
}
func (NoopSync) ([]label.KeyValue) BoundSyncImpl {
return noopBoundInstrument{}
}
func (NoopSync) (context.Context, Number, []label.KeyValue) {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |