package
9.0.0-beta1+incompatible
Repository: https://github.com/elastic/apm-server.git
Documentation: pkg.go.dev
# Functions
AnonymousRateLimit returns a grpc.UnaryServerInterceptor that adds a rate limiter to the context of anonymous requests.
Auth returns a grpc.UnaryServerInterceptor that ensures method calls are authenticated before passing on to the next handler.
AuthenticationDetailsFromContext returns client metadata extracted by the ClientMetadata interceptor.
ClientMetadata returns an interceptor that intercepts unary gRPC requests, extracts metadata relating to the gRPC client, and adds it to the context.
ClientMetadataFromContext returns client metadata extracted by the ClientMetadata interceptor.
ContextWithAuthenticationDetails returns a copy of ctx with details.
ContextWithClientMetadata returns a copy of ctx with values.
Logging intercepts a gRPC request and provides logging processing.
Metrics returns a grpc.UnaryServerInterceptor that increments metrics for gRPC method calls.
Timeout returns a grpc.UnaryServerInterceptor that intercepts context.Canceled and context.DeadlineExceeded errors, and updates the response to indicate that the request timed out.
# Structs
AuthorizationMetadataAuthenticator is a UnaryAuthenticator which extracts auth details from the incoming "authorization" metadata, and passes it to the supplied Authenticator.
ClientMetadataValues holds metadata relating to the gRPC client that initiated the request being handled.
# Interfaces
UnaryAuthenticator is an interface that gRPC services may implement to override the authentication mechanism.