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 ¶
Types ¶
type Config ¶
type Config interface { Registry // Details returns bitmask for customize details of metrics // If zero - use full set of driver metrics Details() trace.Details // WithSystem returns new Config with subsystem scope // Separator for split scopes of metrics provided Config implementation WithSystem(subsystem string) Config }
type Registry ¶ added in v0.2.1
type Registry interface { // 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, labelNames ...string) GaugeVec // TimerVec returns TimerVec by name, subsystem and labels // If timer by args already created - return timer from cache // If timer by args nothing - create and return newest timer TimerVec(name string, labelNames ...string) TimerVec }
Click to show internal directories.
Click to hide internal directories.