Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMetricError = "error"
Variables ¶
This section is empty.
Functions ¶
func ValueField ¶
func ValueField(metricValue interface{}) map[string]interface{}
Types ¶
type Collector ¶
type Collector interface { // When cancelC is closed, collector needs to start closing. // After cancelC is closed, metricC is subsequently closed, // collector needs to close doneC after completing the closing work. Start(cancelC <-chan struct{}, metricC <-chan *Metric) (doneC <-chan struct{}) }
type DefaultRequestMetric ¶
type DefaultRequestMetric string
const ( DefaultRequestMetricDNSLookup DefaultRequestMetric = "dns_lookup" DefaultRequestMetricTCPConnection DefaultRequestMetric = "tcp_connection" DefaultRequestMetricTLSHandshake DefaultRequestMetric = "tls_handshake" DefaultRequestMetricWaitingConnection DefaultRequestMetric = "waiting_connection" DefaultRequestMetricSending DefaultRequestMetric = "sending" DefaultRequestMetricWaitingServer DefaultRequestMetric = "waiting_server" DefaultRequestMetricReceiving DefaultRequestMetric = "receiving" DefaultRequestMetricRequestsNumber DefaultRequestMetric = "requests_number" )
Click to show internal directories.
Click to hide internal directories.