Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryClientInterceptor ¶ added in v0.2.1
func UnaryClientInterceptor(traceField, traceHeaderKey string) grpc.UnaryClientInterceptor
UnaryClientInterceptor intercepts a GRPC client request and inject the trace ID. traceField is used to inject traceID to log
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(traceField, traceHeaderKey string) grpc.UnaryServerInterceptor
UnaryServerInterceptor intercepts a GRPC server response and inject the trace ID. traceField is used to inject traceID to log traceHeaderKey is metadata header key for traceID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.