grpc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Golang gRPC interceptors

This module contains methods to automatically instrment gRPC clients and servers. When adding these interceptors, two independent Samplers will be created that will intercept all Requests and Responses.

The name of these Samplers will be: ${FullMethod}Req and ${FullMethod}Res.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnaryClientInterceptor

func UnaryClientInterceptor() grpc.UnaryClientInterceptor

UnaryClientInterceptor provides a gRPC unary client interceptor that lazily creates two samplers per each gRPC method called by the client. The samplers capture the request and response gRPC messages.

func UnaryServerInterceptor

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor provides a gRPC unary server interceptor that lazily creates two samplers per each gRPC method served The samplers capture the request and response gRPC messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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