Documentation ¶
Index ¶
- Constants
- func Driver(c Config) trace.Driver
- func DriverWithRegistry(registry Registry, opts ...option) trace.Driver
- func Table(c Config) trace.Table
- func TableWithRegistry(registry Registry, opts ...option) trace.Table
- func WithDetails(details Details) option
- func WithNamespace(namespace string) option
- func WithSeparator(separator string) option
- type Config
- type Details
- type Gauge
- type GaugeVec
- type Label
- type Name
- type Registry
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" )
View Source
const ( DriverSystemEvents = Details(1 << iota) DriverClusterEvents DriverCoreEvents DriverCredentialsEvents DriverDiscoveryEvents DriverConnEvents = driverNetEvents | DriverCoreEvents TableSessionEvents = tableSessionEvents | tableSessionQueryEvents | tableSessionTransactionEvents TablePoolEvents = tablePoolLifeCycleEvents | tablePoolRetryEvents | tablePoolSessionLifeCycleEvents | tablePoolAPIEvents )
Variables ¶
This section is empty.
Functions ¶
func DriverWithRegistry ¶ added in v0.2.1
DriverWithRegistry makes trace.Driver with metrics registry and options
func TableWithRegistry ¶ added in v0.2.1
TableWithRegistry makes trace.Table with metrics registry and options
func WithDetails ¶ added in v0.2.1
func WithDetails(details Details) option
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() 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.