Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
Observer holds connection metrics.
func NewObserver ¶
NewObserver returns observer for emitting connection metrics.
func (*Observer) IncPlaintextConnections ¶
func (o *Observer) IncPlaintextConnections()
IncPlaintextConnections increments plaintext connections metric.
func (*Observer) IncTLSConnections ¶
IncTLSConnections increments TLS connections metric.
func (*Observer) IncTLSHandshakeFailures ¶
func (o *Observer) IncTLSHandshakeFailures()
IncTLSHandshakeFailures increments TLS handshake failures metric.
type Params ¶
type Params struct { Meter *metrics.Scope Logger *zap.Logger ServiceName string // Name of the service. TransportName string // Name of the transport. Direction string // Inbound or Outbound. Dest string // Name of the dest, only for outbound. Mode yarpctls.Mode }
Params holds parameters needed for creating new observer.
Click to show internal directories.
Click to hide internal directories.