Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registerer prometheus.Registerer, toRegister ...prometheus.Collector) error
Types ¶
type AllowLimiter ¶
type AllowLimiterInstrumentation ¶
type AllowLimiterInstrumentation struct {
// contains filtered or unexported fields
}
func NewAllowLimiterInstrumentation ¶
func NewAllowLimiterInstrumentation(limiterName string, limit float64, limitUnit string, tr trace.Tracer, m otelmetric.Meter, delegate AllowLimiter) (*AllowLimiterInstrumentation, error)
type LimiterWrapper ¶
type LimiterWrapper struct {
// contains filtered or unexported fields
}
func NewLimiterWrapper ¶
func NewLimiterWrapper(limiterName string, limit float64, limitUnit string, m otelmetric.Meter, tr trace.Tracer) (*LimiterWrapper, error)
type OtelErrorHandler ¶
func (*OtelErrorHandler) Handle ¶
func (h *OtelErrorHandler) Handle(err error)
type WaitLimiter ¶
type WaitLimiterInstrumentation ¶
type WaitLimiterInstrumentation struct {
// contains filtered or unexported fields
}
func NewWaitLimiterInstrumentation ¶
func NewWaitLimiterInstrumentation(limiterName string, limit float64, limitUnit string, tr trace.Tracer, m otelmetric.Meter, delegate WaitLimiter) (*WaitLimiterInstrumentation, error)
Click to show internal directories.
Click to hide internal directories.