Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagVersion = "sdk" TagSource = "source" TagName = "name" TagMethod = "method" TagError = "error" TagErrCode = "errCode" TagAddress = "address" TagNodeID = "nodeID" TagDataCenter = "destination" TagState = "state" TagIdempotent = "idempotent" TagSuccess = "success" TagStage = "stage" )
Variables ¶
This section is empty.
Functions ¶
func WithDetails ¶ added in v0.2.1
func WithNamespace ¶ added in v0.2.1
func WithNamespace(namespace string) option
func WithSeparator ¶ added in v0.2.1
func WithSeparator(separator string) option
Types ¶
type Config ¶
type Config interface { // Details returns bitmask for customize details of metrics // If zero - use full set of driver metrics Details() trace.Details // GaugeVec returns GaugeVec by name, subsystem and labels // If gauge by args already created - return gauge from cache // If gauge by args nothing - create and return newest gauge GaugeVec(name string, description string, labelNames ...string) GaugeVec // WithSystem returns new Config with subsystem scope // Separator for split scopes of metrics provided Config implementation WithSystem(subsystem string) Config }
Click to show internal directories.
Click to hide internal directories.