metrics

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package metrics provides optional HTTP middleware for CloudWatch EMF metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New emits latency, fault and error metrics with a bounded route dimension. Each request owns a metric scope, including metrics added downstream using m.WithContext(request.Context). It publishes before streaming body transfer, matching the reference middleware. The parent scope remains unchanged. Publication failures propagate as errors without discarding business errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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