Source File
counter.go
Belonging Package
go.opentelemetry.io/otel/api/metric
package metric
import (
)
type Float64Counter struct {
syncInstrument
}
type Int64Counter struct {
syncInstrument
}
type BoundFloat64Counter struct {
syncBoundInstrument
}
type BoundInt64Counter struct {
syncBoundInstrument
}
func ( Float64Counter) ( ...label.KeyValue) ( BoundFloat64Counter) {
.syncBoundInstrument = .bind()
return
}
func ( Int64Counter) ( ...label.KeyValue) ( BoundInt64Counter) {
.syncBoundInstrument = .bind()
return
}
func ( Float64Counter) ( float64) Measurement {
return .float64Measurement()
}
func ( Int64Counter) ( int64) Measurement {
return .int64Measurement()
}
func ( Float64Counter) ( context.Context, float64, ...label.KeyValue) {
.directRecord(, NewFloat64Number(), )
}
func ( Int64Counter) ( context.Context, int64, ...label.KeyValue) {
.directRecord(, NewInt64Number(), )
}
func ( BoundFloat64Counter) ( context.Context, float64) {
.directRecord(, NewFloat64Number())
}
func ( BoundInt64Counter) ( 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. |