zipkintracing

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithServant added in v1.3.5

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

ContextWithServant add servant to context

func GetTracer added in v1.3.5

func GetTracer(servant string) opentracing.Tracer

GetTracer gets tracer with the servant name

func Init

func Init()

Init is used to init opentracing and zipkin, all configs are loaded from server config /tars/application/server add the following config samplerate=0.5 sampleaddress=http://127.0.0.1:9411 sampletype=http sampleencoding=json

func ServantFromContext added in v1.3.5

func ServantFromContext(ctx context.Context) string

ServantFromContext gets servant from context

func ZipkinClientFilter

func ZipkinClientFilter() tars.ClientFilter

ZipkinClientFilter gets tars client filter for zipkin opentracing.

func ZipkinHttpMiddleware added in v1.3.5

func ZipkinHttpMiddleware(next http.Handler) http.Handler

ZipkinHttpMiddleware zipkin http server router middleware

func ZipkinServerFilter

func ZipkinServerFilter() tars.ServerFilter

ZipkinServerFilter gets tars 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