Versions in this module Expand all Collapse all v2 v2.0.0 Aug 12, 2024 Changes in this version + const BrowserChrome + const BrowserEdge + const BrowserFirefox + const BrowserIE + const BrowserOpera + const BrowserSafari + const BrowserTrident + const DeviceBot + const DeviceDesktop + const DeviceMobile + const Http + const HttpLatency + const HttpMethod + const HttpPath + const HttpRemoteAddr + const HttpRequestHost + const HttpScheme + const HttpStatus + const Https + const TLSVersion + const UserAgentBrowser + const UserAgentBrowserVersion + const UserAgentDevice + const UserAgentOS + const UserAgentOSVersion + func Logging(excludePaths ...string) gin.HandlerFunc + func Metrics() (*prometheus.GaugeVec, *prometheus.CounterVec, *prometheus.HistogramVec) + func OtelTracing(excludePaths ...string) gin.HandlerFunc + func ParseHeaders(headers map[string][]string) (args map[string]any) + func ParseUserAgent(rawUserAgent string) (args map[string]any) + func PrometheusMetrics(registry *prometheus.Registry, namespace string, apiname string, ...) gin.HandlerFunc + func SpanStatus(status int) (code otelCodes.Code, desc string) Other modules containing this package github.com/twistingmercury/middleware