middleware

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package middleware provides logging, metrics and tracing middleware for SuperMQ HTTP 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 smqhttp.Service, logger *slog.Logger) smqhttp.Service

NewLogging adds logging facilities to the websocket service.

func NewMetrics

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

NewMetrics instruments adapter by tracking request count and latency.

func NewTracing

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

NewTracing returns a new websocket 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