handler

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(svc session.Handler, logger *slog.Logger) session.Handler

LoggingMiddleware adds logging facilities to the adapter.

func MetricsMiddleware

func MetricsMiddleware(svc session.Handler, counter metrics.Counter, latency metrics.Histogram) session.Handler

MetricsMiddleware instruments adapter by tracking request count and latency.

func NewTracing

func NewTracing(tracer trace.Tracer, handler session.Handler) session.Handler

NewHandler creates a new session.Handler middleware with tracing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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