zipkintracing

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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

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()

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

func ServantFromContext(ctx context.Context) string

ServantFromContext gets servant from context

func ZipkinClientFilter

func ZipkinClientFilter() tars.ClientFilterMiddleware

ZipkinClientFilter gets tars client filter for zipkin opentracing.

func ZipkinHttpMiddleware

func ZipkinHttpMiddleware(next http.Handler) http.Handler

ZipkinHttpMiddleware zipkin http server router middleware

func ZipkinServerFilter

func ZipkinServerFilter() tars.ServerFilterMiddleware

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