Documentation ¶
Index ¶
- func GetDefaultSpan(ctx context.Context, name string) (context.Context, opentracing.Span)
- func GetServerSpan(ctx context.Context, name string) (context.Context, opentracing.Span)
- func GetSpan(ctx context.Context, name string, f func(span opentracing.Span)) (context.Context, opentracing.Span)
- func InitGlobalTracer(config *config.JaegerConfig) (io.Closer, error)
- func InitGlobalTracerFromEtcd(etcdCli *etcd.Client) (closer io.Closer, err error)
- func InitTracer(config *config.JaegerConfig, serviceName string) (opentracing.Tracer, io.Closer, error)
- func InitTracerFromEtcd(etcdCli *etcd.Client, serviceName string) (tracer opentracing.Tracer, closer io.Closer, err error)
- func NewJaegerConfig(etcdCli *etcd.Client) (string, *config.JaegerConfig)
- func SpanFinish(span opentracing.Span, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultSpan ¶
GetDefaultSpan 获取默认 span
func GetServerSpan ¶
GetServerSpan 获取server span
func GetSpan ¶
func GetSpan(ctx context.Context, name string, f func(span opentracing.Span)) (context.Context, opentracing.Span)
GetSpan 获取span
func InitGlobalTracer ¶
func InitGlobalTracer(config *config.JaegerConfig) (io.Closer, error)
InitGlobalTracer ...
func InitGlobalTracerFromEtcd ¶
InitGlobalTracerFromEtcd ...
func InitTracer ¶
func InitTracer(config *config.JaegerConfig, serviceName string) (opentracing.Tracer, io.Closer, error)
InitTracer ..
func InitTracerFromEtcd ¶
func InitTracerFromEtcd(etcdCli *etcd.Client, serviceName string) (tracer opentracing.Tracer, closer io.Closer, err error)
InitTracerFromEtcd ...
func NewJaegerConfig ¶
func NewJaegerConfig(etcdCli *etcd.Client) (string, *config.JaegerConfig)
NewJaegerConfig get config from etcd
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.