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.
Click to show internal directories.
Click to hide internal directories.