interceptors

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnaryClientLoggingInterceptor

func UnaryClientLoggingInterceptor(logger *slog.Logger) grpclogging.Logger

UnaryClientLoggingInterceptor adapts slog 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 *slog.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