interceptors

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnaryClientLoggingInterceptor

func UnaryClientLoggingInterceptor(logger logging.Logger) grpclogging.Logger

UnaryClientLoggingInterceptor adapts logging.logger to interceptor logger.

func UnaryClientTracingInterceptor

func UnaryClientTracingInterceptor(
	tp tracing.Provider,
	spanConfig tracing.SpanConfig,
) grpc.UnaryClientInterceptor

UnaryClientTracingInterceptor creates span on base of existing span and logs its Start and End events.

func UnaryServerLoggingInterceptor

func UnaryServerLoggingInterceptor(logger logging.Logger) grpc.UnaryServerInterceptor

UnaryServerLoggingInterceptor intercepts gRPC handler, logs request with provided request ID and calls handler.

func UnaryServerTracingInterceptor

func UnaryServerTracingInterceptor(
	tp tracing.Provider,
	spanConfig tracing.SpanConfig,
) grpc.UnaryServerInterceptor

UnaryServerTracingInterceptor creates span on base of existing span and logs its Start and End events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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