Source File
descriptor.go
Belonging Package
go.opentelemetry.io/otel/api/metric
package metric
import
type Descriptor struct {
name string
kind Kind
numberKind NumberKind
config InstrumentConfig
}
func ( string, Kind, NumberKind, ...InstrumentOption) Descriptor {
return Descriptor{
name: ,
kind: ,
numberKind: ,
config: ConfigureInstrument(),
}
}
func ( Descriptor) () string {
return .name
}
func ( Descriptor) () Kind {
return .kind
}
func ( Descriptor) () string {
return .config.Description
}
func ( Descriptor) () unit.Unit {
return .config.Unit
}
func ( Descriptor) () NumberKind {
return .numberKind
}
func ( Descriptor) () string {
return .config.InstrumentationName
}
func ( Descriptor) () string {
return .config.InstrumentationVersion
![]() |
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. |