telemetry

package
v1.14.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package telemetry contains code for emitting telemetry from Sansshell processes.

Index

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 well as injecting it 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. 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 logs incoming requests using the supplied logger, as well as injecting 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL