Documentation
¶
Index ¶
- Constants
- func Coordination(c Config) (t trace.Coordination)
- func Discovery(c Config) (t trace.Discovery)
- func Driver(c Config) (t trace.Driver)
- func Ratelimiter(c Config) (t trace.Ratelimiter)
- func Retry(c Config) (t trace.Retry)
- func Scheme(c Config) (t trace.Scheme)
- func Scripting(c Config) (t trace.Scripting)
- func Table(c Config) (t trace.Table)
- func WithTraces(c Config) ydb.Option
- type Config
- type Gauge
- type GaugeVec
- type Label
- type Name
- type Registry
- type Timer
- type TimerVec
Constants ¶
View Source
const ( TagVersion = "sdk" TagSource = "source" TagName = "name" TagMethod = "method" TagError = "error" TagErrCode = "errCode" TagAddress = "address" TagID = "ID" TagNodeID = "nodeID" TagDataCenter = "destination" TagState = "state" TagIdempotent = "idempotent" TagSuccess = "success" TagStage = "stage" )
Variables ¶
This section is empty.
Functions ¶
func Coordination ¶ added in v0.7.0
func Coordination(c Config) (t trace.Coordination)
func Ratelimiter ¶ added in v0.7.0
func Ratelimiter(c Config) (t trace.Ratelimiter)
func WithTraces ¶ added in v0.7.0
func WithTraces(c Config) ydb.Option
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.