Source File
config.go
Belonging Package
go.opentelemetry.io/otel/api/metric
package metric
import
ApplyInstrument(*InstrumentConfig)
}
func ( []InstrumentOption) InstrumentConfig {
var InstrumentConfig
for , := range {
.ApplyInstrument(&)
}
return
}
func ( string) InstrumentOption {
return descriptionOption()
}
type descriptionOption string
func ( descriptionOption) ( *InstrumentConfig) {
.Description = string()
}
func ( unit.Unit) InstrumentOption {
return unitOption()
}
type unitOption unit.Unit
func ( unitOption) ( *InstrumentConfig) {
.Unit = unit.Unit()
}
func ( string) InstrumentOption {
return instrumentationNameOption()
}
type instrumentationNameOption string
func ( instrumentationNameOption) ( *InstrumentConfig) {
.InstrumentationName = string()
}
ApplyMeter(*MeterConfig)
}
func ( []MeterOption) MeterConfig {
var MeterConfig
for , := range {
.ApplyMeter(&)
}
return
}
type Option interface {
InstrumentOption
MeterOption
}
func ( string) Option {
return instrumentationVersionOption()
}
type instrumentationVersionOption string
func ( instrumentationVersionOption) ( *MeterConfig) {
.InstrumentationVersion = string()
}
func ( instrumentationVersionOption) ( *InstrumentConfig) {
.InstrumentationVersion = string()
![]() |
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. |