Documentation
¶
Index ¶
- func MetricsContextMiddleware(next natsmicromw.ContextHandlerFunc) natsmicromw.ContextHandlerFunc
- func MetricsMiddleware(next micro.Handler) micro.Handler
- func RequestIdFromContext(ctx context.Context) string
- func RequestIdMiddleware(tags ...string) func(next natsmicromw.ContextHandlerFunc) natsmicromw.ContextHandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricsContextMiddleware ¶ added in v0.0.3
func MetricsContextMiddleware(next natsmicromw.ContextHandlerFunc) natsmicromw.ContextHandlerFunc
Same middleware but with context support
func MetricsMiddleware ¶
Middleware that increments the message count metric
func RequestIdFromContext ¶
Get current request Id from the context
func RequestIdMiddleware ¶
func RequestIdMiddleware(tags ...string) func(next natsmicromw.ContextHandlerFunc) natsmicromw.ContextHandlerFunc
An example request id middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.