observability

package
v0.0.0-...-544f775 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RequestIDKey = "request_id"

Variables

View Source
var (
	HttpRequestsTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "http_requests_total",
			Help: "Total number of HTTP requests",
		},
		[]string{"method", "path", "status"},
	)
)

Functions

func LoggerWithRequestID

func LoggerWithRequestID(log zerolog.Logger, c echo.Context) zerolog.Logger

func MetricsMiddleware

func MetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func NewLogger

func NewLogger(env string, level string) zerolog.Logger

func RegisterMetrics

func RegisterMetrics()

func RequestIDMiddleware

func RequestIDMiddleware() echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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