package
9.0.0-beta1+incompatible
Repository: https://github.com/elastic/apm-server.git
Documentation: pkg.go.dev
# Functions
AnonymousRateLimitMiddleware adds a rate.Limiter to the context of anonymous requests, first ensuring the client is allowed to perform a single event and responding with 429 Too Many Requests if it is not.
AuthMiddleware returns a Middleware to authenticate clients.
CORSMiddleware returns a middleware serving preflight OPTION requests and terminating requests if they do not match the required valid origin.
KillSwitchMiddleware returns a Middleware checking whether the path for the request is enabled.
LogMiddleware returns a middleware taking care of logging processing a request in the middleware and the request handler.
MonitoringMiddleware returns a middleware that increases monitoring counters for collecting metrics about request processing.
RecoverPanicMiddleware returns a middleware ensuring that the Server recovers from panics, while trying to write an according response.
ResponseHeadersMiddleware sets the configured headers in the response.
Wrap wraps a request.Handler into given middleware functions, maintaining order from the last to the first middleware.
# Interfaces
Authenticator provides an interface for authenticating a client.
# Type aliases
Middleware wraps a request.Handler.