Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Metrics provides access to all dial metrics.
Metrics = newAgentMetrics()
)
Functions ¶
This section is empty.
Types ¶
type AgentMetrics ¶
type AgentMetrics struct {
// contains filtered or unexported fields
}
AgentMetrics includes all the metrics of the proxy agent.
func (*AgentMetrics) ObserveDialLatency ¶
func (a *AgentMetrics) ObserveDialLatency(elapsed time.Duration)
ObserveDialLatency records the latency of dial to the remote endpoint.
func (*AgentMetrics) ObserveFailure ¶
func (a *AgentMetrics) ObserveFailure(direction Direction)
ObserveFailure records a failure to send to or receive from the proxy server, labeled by the direction.
Click to show internal directories.
Click to hide internal directories.