Source File
valuerecorder.go
Belonging Package
go.opentelemetry.io/otel/api/metric
package metric
import (
)
type Float64ValueRecorder struct {
syncInstrument
}
type Int64ValueRecorder struct {
syncInstrument
}
type BoundFloat64ValueRecorder struct {
syncBoundInstrument
}
type BoundInt64ValueRecorder struct {
syncBoundInstrument
}
func ( Float64ValueRecorder) ( ...label.KeyValue) ( BoundFloat64ValueRecorder) {
.syncBoundInstrument = .bind()
return
}
func ( Int64ValueRecorder) ( ...label.KeyValue) ( BoundInt64ValueRecorder) {
.syncBoundInstrument = .bind()
return
}
func ( Float64ValueRecorder) ( float64) Measurement {
return .float64Measurement()
}
func ( Int64ValueRecorder) ( int64) Measurement {
return .int64Measurement()
}
func ( Float64ValueRecorder) ( context.Context, float64, ...label.KeyValue) {
.directRecord(, NewFloat64Number(), )
}
func ( Int64ValueRecorder) ( context.Context, int64, ...label.KeyValue) {
.directRecord(, NewInt64Number(), )
}
func ( BoundFloat64ValueRecorder) ( context.Context, float64) {
.directRecord(, NewFloat64Number())
}
func ( BoundInt64ValueRecorder) ( context.Context, int64) {
.directRecord(, NewInt64Number())
![]() |
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. |