interceptor

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InboundGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name:        "amqp_inbound",
		Help:        "Increased on incoming deliveries, decreased on ack/nack",
		ConstLabels: nil,
	}, []string{"routing_key"})
	TransportErrorCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name:        "amqp_transport_error",
		Help:        "Increased when a message could not be decoded",
		ConstLabels: nil,
	}, []string{"routing_key"})
	NackCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "amqp_not_acknowledged",
		Help: "Incremented on every NACK",
	}, []string{"routing_key", "requeue"})
)

Functions

func PrometheusInterceptor

func PrometheusInterceptor(next broker.Handler) broker.Handler

func SubscriberLoggerInterceptor

func SubscriberLoggerInterceptor(next broker.Handler) broker.Handler

func SubscriberMetadataInterceptor

func SubscriberMetadataInterceptor(next broker.Handler) broker.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL