Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(cidFunc ClientTraceIdFunc) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a new unary client interceptor that optionally logs the execution of external gRPC calls.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
全局跟踪ID,本方式用于在不启用operation tracer情况下,仍然可以跟踪整个请求. 客户端通过metadata向服务端传递
Types ¶
type ClientTraceIdFunc ¶
func DefaultClientTraceIdFunc ¶
func DefaultClientTraceIdFunc(fromHttpHeader bool) ClientTraceIdFunc
support get string key from context.such as gin
Click to show internal directories.
Click to hide internal directories.