Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { OtelHTTPEndpoint string OtelGRPCEndpoint string Logger logging.LoggerInterface Enabled bool }
func NewConfig ¶
func NewConfig(enabled bool, otelGRPCEndpoint, otelHTTPEndpoint string, logger logging.LoggerInterface) *Config
func NewNoopConfig ¶ added in v0.12.0
func NewNoopConfig() *Config
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is the monitoring middleware object implementing Prometheus monitoring
func NewMiddleware ¶
func NewMiddleware(monitor monitoring.MonitorInterface, logger logging.LoggerInterface) *Middleware
NewMiddleware returns a Middleware based on the type of monitor
func (*Middleware) OpenTelemetry ¶
func (mdw *Middleware) OpenTelemetry(handler http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.