Class ControllerGrpcAuditLoggingInterceptor

java.lang.Object
com.linkedin.venice.controller.grpc.server.interceptor.ControllerGrpcAuditLoggingInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public class ControllerGrpcAuditLoggingInterceptor extends Object implements io.grpc.ServerInterceptor
A gRPC server interceptor for audit logging.

This interceptor logs incoming and outgoing gRPC calls, including the API method name, server address, client address, cluster name, store name, and request latency. It is useful for debugging and monitoring gRPC requests and responses.

  • Constructor Details

    • ControllerGrpcAuditLoggingInterceptor

      public ControllerGrpcAuditLoggingInterceptor()
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor