Documentation ¶
Overview ¶
Package telemetry contains code for emitting telemetry from Sansshell processes.
Index ¶
- func StreamClientLogInterceptor(logger logr.Logger) grpc.StreamClientInterceptor
- func StreamServerLogInterceptor(logger logr.Logger) grpc.StreamServerInterceptor
- func UnaryClientLogInterceptor(logger logr.Logger) grpc.UnaryClientInterceptor
- func UnaryServerLogInterceptor(logger logr.Logger) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientLogInterceptor ¶
func StreamClientLogInterceptor(logger logr.Logger) grpc.StreamClientInterceptor
StreamClientLogInterceptor returns a new grpc.StreamClientInterceptor that injects it into the context of the created stream.
func StreamServerLogInterceptor ¶
func StreamServerLogInterceptor(logger logr.Logger) grpc.StreamServerInterceptor
StreamServerLogInterceptor returns a new grpc.StreamServerInterceptor that makes it available via the stream context to stream handlers. If incoming calls require client side provided justification (which is logged) then the justification parameter should be true and a required key of ReqJustKey must be in the context when the interceptor runs.
func UnaryClientLogInterceptor ¶
func UnaryClientLogInterceptor(logger logr.Logger) grpc.UnaryClientInterceptor
UnaryClientLogInterceptor returns a new grpc.UnaryClientInterceptor that logs outgoing requests using the supplied logger, as well as injecting it into the context of the invoker.
func UnaryServerLogInterceptor ¶
func UnaryServerLogInterceptor(logger logr.Logger) grpc.UnaryServerInterceptor
UnaryServerLogInterceptor returns a new gprc.UnaryServerInterceptor that injects it into the context of downstream handlers. If incoming calls require client side provided justification (which is logged) then the justification parameter should be true and a required key of ReqJustKey must be in the context when the interceptor runs.
Types ¶
This section is empty.