package instrument
import "go.opentelemetry.io/otel/metric/instrument"
Index ¶
- type Asynchronous
- type Config
- func NewConfig(opts ...Option) Config
- func (cfg Config) Description() string
- func (cfg Config) Unit() unit.Unit
- type Option
- type Synchronous
Types ¶
type Asynchronous ¶
type Asynchronous interface {
// contains filtered or unexported methods
}
Asynchronous instruments are instruments that are updated within a Callback. If an instrument is observed outside of it's callback it should be an error.
This interface is used as a grouping mechanism.
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains options for metric instrument descriptors.
func NewConfig ¶
NewConfig creates a new Config and applies all the given options.
func (Config) Description ¶
Description describes the instrument in human-readable terms.
func (Config) Unit ¶
Unit describes the measurement unit for an instrument.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an interface for applying metric instrument options.
func WithDescription ¶
WithDescription applies provided description.
func WithUnit ¶
WithUnit applies provided unit.
type Synchronous ¶
type Synchronous interface {
// contains filtered or unexported methods
}
Synchronous instruments are updated in line with application code.
This interface is used as a grouping mechanism.
Source Files ¶
config.go instrument.go
Directories ¶
Path | Synopsis |
---|---|
instrument/asyncfloat64 | |
instrument/asyncint64 | |
instrument/syncfloat64 | |
instrument/syncint64 |
- Version
- v0.32.3
- Published
- Oct 12, 2022
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 1 hour ago –
Tools for package owners.