MCPcopy
hub / github.com/grafana/dskit / RPCCallStarting

Method RPCCallStarting

server/limits.go:29–29  ·  view source on GitHub ↗

RPCCallStarting is called before request has been read into memory. All that's known about the request at this point is grpc method name. Returned context is used during the remainder of the gRPC call. Returned error should be convertible to gRPC Status via status.FromError, otherwise gRPC-server

(ctx context.Context, methodName string, md metadata.MD)

Source from the content-addressed store, hash-verified

27 // Returned error should be convertible to gRPC Status via status.FromError,
28 // otherwise gRPC-server implementation-specific error will be returned to the client (codes.PermissionDenied in grpc@v1.55.0).
29 RPCCallStarting(ctx context.Context, methodName string, md metadata.MD) (context.Context, error)
30
31 // RPCCallProcessing is called by a server interceptor, allowing request pre-processing or request blocking to be
32 // performed. The returned function will be applied after the request is handled, providing any error that occurred while

Callers 1

TapHandleMethod · 0.65

Implementers 2

methodLimiterserver/limits_test.go
funcMethodLimiterserver/limits_test.go

Calls

no outgoing calls

Tested by

no test coverage detected