middleware

package
v2.83.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestTelemetry added in v2.78.0

func NewRequestTelemetry(
	svcLogger svc1log.Logger,
	evtLogger evt2log.Logger,
	auditLogger audit2log.Logger,
	metricLogger metric1log.Logger,
	diagLogger diag1log.Logger,
	reqLogger req2log.Logger,
	trcLogger trc1log.Logger,
	tracerOptions []wtracing.TracerOption,
	idsExtractor extractor.IDsFromRequest,
	metricsRegistry metrics.Registry,
) wrouter.RequestHandlerMiddleware

NewRequestTelemetry is request middleware that configures instrumentation and emits telemetry that applies to all requests.

* Set loggers, metrics registry, and tracer on context * Extract IDs from request and set on context * Create outer trace span for request * Set HSTS headers

func NewRouteTelemetry added in v2.79.0

func NewRouteTelemetry(mr metrics.Registry) wrouter.RouteHandlerMiddleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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