tracing/grpc/client_interceptors.go (11 lines of code) (raw):

package grpccorrelation import ( grpc_opentracing "github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing" "google.golang.org/grpc" ) // UnaryClientTracingInterceptor will create a unary client tracing interceptor. func UnaryClientTracingInterceptor() grpc.UnaryClientInterceptor { return grpc_opentracing.UnaryClientInterceptor(grpc_opentracing.WithFilterFunc(healthCheckFilterFunc)) } // StreamClientTracingInterceptor will create a streaming client tracing interceptor. func StreamClientTracingInterceptor() grpc.StreamClientInterceptor { return grpc_opentracing.StreamClientInterceptor() }