Documentation ¶
Index ¶
- func Disable(name string)
- func EchoMiddleware(tracerName string) echo.MiddlewareFunc
- func Enable(name string) (err error)
- func Get(name string) opentracing.Tracer
- func MySQLPingWrap(ctx context.Context, tracerName string)
- func RPCStreamClientInterceptorOption(tracerName string) grpc.DialOption
- func RPCStreamServerInterceptorOption(tracerName string) grpc.ServerOption
- func RPCUnaryClientInterceptorOption(tracerName string) grpc.DialOption
- func RPCUnaryServerInterceptorOption(tracerName string) grpc.ServerOption
- func Usejaeger()
- type ITracer
- type RedisClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoMiddleware ¶
func EchoMiddleware(tracerName string) echo.MiddlewareFunc
EchoMiddleware echo 的中间件
func MySQLPingWrap ¶
MySQLPingWrap ping mysql for test
func RPCStreamClientInterceptorOption ¶
func RPCStreamClientInterceptorOption(tracerName string) grpc.DialOption
RPCStreamClientInterceptorOption 用来设置 gRPC tracer 拦截器
func RPCStreamServerInterceptorOption ¶
func RPCStreamServerInterceptorOption(tracerName string) grpc.ServerOption
RPCStreamServerInterceptorOption 用来设置 gRPC tracer 拦截器
func RPCUnaryClientInterceptorOption ¶
func RPCUnaryClientInterceptorOption(tracerName string) grpc.DialOption
RPCUnaryClientInterceptorOption 用来设置 gRPC tracer 拦截器
func RPCUnaryServerInterceptorOption ¶
func RPCUnaryServerInterceptorOption(tracerName string) grpc.ServerOption
RPCUnaryServerInterceptorOption 用来设置 gRPC tracer 拦截器
Types ¶
type ITracer ¶
type ITracer interface { Enable(name string) (err error) Disable(name string) Get(name string) opentracing.Tracer }
ITracer tracer 访问接口
var DefaultTracer ITracer
DefaultTracer tracer 具体实例
Source Files ¶
Click to show internal directories.
Click to hide internal directories.