zipkintracing

package
v1.4.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithServant

func ContextWithServant(ctx context.Context, servant string) context.Context

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

func ServantFromContext(ctx context.Context) string

ServantFromContext gets servant from context

func ZipkinClientFilter

func ZipkinClientFilter() ksf.ClientFilter

ZipkinClientFilter gets ksf client filter for zipkin opentracing.

func ZipkinHttpMiddleware

func ZipkinHttpMiddleware(next http.Handler) http.Handler

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL