Copyright The OpenTelemetry Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

package metric

import (
	

	
)
Float64Counter is a metric that accumulates float64 values.
Int64Counter is a metric that accumulates int64 values.
type Int64Counter struct {
	syncInstrument
}
BoundFloat64Counter is a bound instrument for Float64Counter. It inherits the Unbind function from syncBoundInstrument.
BoundInt64Counter is a boundInstrument for Int64Counter. It inherits the Unbind function from syncBoundInstrument.
Bind creates a bound instrument for this counter. The labels are associated with values recorded via subsequent calls to Record.
func ( Float64Counter) ( ...label.KeyValue) ( BoundFloat64Counter) {
	.syncBoundInstrument = .bind()
	return
}
Bind creates a bound instrument for this counter. The labels are associated with values recorded via subsequent calls to Record.
func ( Int64Counter) ( ...label.KeyValue) ( BoundInt64Counter) {
	.syncBoundInstrument = .bind()
	return
}
Measurement creates a Measurement object to use with batch recording.
func ( Float64Counter) ( float64) Measurement {
	return .float64Measurement()
}
Measurement creates a Measurement object to use with batch recording.
func ( Int64Counter) ( int64) Measurement {
	return .int64Measurement()
}
Add adds the value to the counter's sum. The labels should contain the keys and values to be associated with this value.
func ( Float64Counter) ( context.Context,  float64,  ...label.KeyValue) {
	.directRecord(, NewFloat64Number(), )
}
Add adds the value to the counter's sum. The labels should contain the keys and values to be associated with this value.
func ( Int64Counter) ( context.Context,  int64,  ...label.KeyValue) {
	.directRecord(, NewInt64Number(), )
}
Add adds the value to the counter's sum using the labels previously bound to this counter via Bind()
Add adds the value to the counter's sum using the labels previously bound to this counter via Bind()
func ( BoundInt64Counter) ( context.Context,  int64) {
	.directRecord(, NewInt64Number())