Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RequestIDMetadataKey is the key in the gRPC // metadata. RequestIDMetadataKey = "x-request-id" RequestIDLogKey = "request-id" )
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a server interceptor that add a request ID to the incoming metadata if there is none.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.