middleware

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package middleware provides logging metrics and tracing middleware for SuperMQ Auth service.

For more details about tracing instrumentation for SuperMQ refer to the documentation at https://docs.supermq.absmach.eu/tracing/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogging

func NewLogging(svc auth.Service, logger *slog.Logger) auth.Service

NewLogging adds logging facilities to the core service.

func NewMetrics

func NewMetrics(svc auth.Service, counter metrics.Counter, latency metrics.Histogram) auth.Service

NewMetrics instruments core service by tracking request count and latency.

func NewTracing

func NewTracing(svc auth.Service, tracer trace.Tracer) auth.Service

NewTracing returns a new auth service with tracing capabilities.

Types

This section is empty.

Jump to

Keyboard shortcuts

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