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, endpoint500s *EndpointFiveHundredsHealthCheck) wrouter.RouteHandlerMiddleware
Types ¶
type EndpointFiveHundredsHealthCheck ¶ added in v2.91.0
type EndpointFiveHundredsHealthCheck struct {
// contains filtered or unexported fields
}
func NewEndpointFiveHundredsHealthCheck ¶ added in v2.91.0
func NewEndpointFiveHundredsHealthCheck(ctx context.Context, alwaysHealthy bool) *EndpointFiveHundredsHealthCheck
NewEndpointFiveHundredsHealthCheck creates a new EndpointFiveHundredsHealthCheck and starts its internal goroutine. If alwaysHealthy is true, the health check will always return HEALTHY but any failing/broken endpoints will still be included in the results params map as information.
func (*EndpointFiveHundredsHealthCheck) HealthStatus ¶ added in v2.91.0
func (e *EndpointFiveHundredsHealthCheck) HealthStatus(context.Context) health.HealthStatus
func (*EndpointFiveHundredsHealthCheck) MarkResponse ¶ added in v2.91.0
func (e *EndpointFiveHundredsHealthCheck) MarkResponse(route wrouter.RouteSpec, code int)
Click to show internal directories.
Click to hide internal directories.