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 logs client requests using the supplied logger, as as as injecting into into the Context of the created stream.
func StreamServerLogInterceptor ¶
func StreamServerLogInterceptor(logger logr.Logger) grpc.StreamServerInterceptor
StreamServerLogInterceptor returns a new grpc.StreamServerInterceptor that logs incoming streams using the supplied logger, and makes it available via the stream context to stream handlers.
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 logs incoming requests using the supplied logger, as well as injecting it into the context of downstream handlers.
Types ¶
This section is empty.