Documentation ¶
Index ¶
- func ContextWithServant(ctx context.Context, servant string) context.Context
- func GetTracer(servant string) opentracing.Tracer
- func Init(zipkinHTTPEndpoint string, sameSpan bool, traceID128Bit bool, debug bool, ...)
- func InitV2()
- func ServantFromContext(ctx context.Context) string
- func ZipkinClientFilter() ksf.ClientFilter
- func ZipkinHttpMiddleware(next http.Handler) http.Handler
- func ZipkinServerFilter() ksf.ServerFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithServant ¶
ContextWithServant add servant to context
func GetTracer ¶
func GetTracer(servant string) opentracing.Tracer
GetTracer gets tracer with the servant name
func Init ¶
func Init( zipkinHTTPEndpoint string, sameSpan bool, traceID128Bit bool, debug bool, hostPort, serviceName string, )
Init is used to init opentracing and zipkin
func InitV2 ¶
func InitV2()
InitV2 is used to init opentracing and zipkin, all configs are loaded from server config
func ServantFromContext ¶
ServantFromContext gets servant from context
func ZipkinClientFilter ¶
func ZipkinClientFilter() ksf.ClientFilter
ZipkinClientFilter gets ksf client filter for zipkin opentracing.
func ZipkinHttpMiddleware ¶
ZipkinHttpMiddleware zipkin http server router middleware
func ZipkinServerFilter ¶
func ZipkinServerFilter() ksf.ServerFilter
ZipkinServerFilter gets ksf server filter for zipkin opentracing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.