package
0.79.0-preview.4
Repository: https://github.com/vegaprotocol/vega.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AgeBuckets - specific to summary type.
APIRequestAndTimeGraphQL updates the metrics for GraphQL API calls.
APIRequestAndTimeREST updates the metrics for REST API calls.
No description provided by the author
No description provided by the author
Buckets - specific to histogram type.
BufCap - specific to summary type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Help - set the help field on instrument.
No description provided by the author
Labels set labels for instrument (similar to vector, but with given values).
MaxAge - specific to summary type.
Namespace - set namespace.
No description provided by the author
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
NewTimeCounter returns a new TimeCounter, with the start time already recorded.
Objectives - specific to summary type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Start enable metrics (given config).
No description provided by the author
No description provided by the author
StartAPIRequestAndTimeGRPC updates the metrics for GRPC API calls.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Subsystem - set subsystem..
Vectors - configuration used to create a vector of a given interface, slice of label names.

# Constants

Counter ...
Gauge ...
Histogram ...
Summary ...

# Variables

ErrInstrumentNotSupported signals the specified instrument is not yet supported.
ErrInstrumentTypeMismatch signal the type of the instrument is not expected.

# Structs

Config represents the configuration of the metric package.
TimeCounter holds a time.Time and a list of label values, hiding the start time from being accidentally overwritten, and removing the need to duplicate the label values.

# Interfaces

MetricInstrument - template interface for mi type return value - only mock if needed, and only mock the funcs you use.

# Type aliases

InstrumentOption - vararg for instrument options setting.