trace

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceClient added in v0.0.9

func NewTraceClient(opts ...Option) middleware.MiddleWare

NewTraceClient is a new server middleware for OpenTracing.

func NewTraceServer added in v0.0.9

func NewTraceServer(opts ...Option) middleware.MiddleWare

NewTraceServer is a new server middleware for OpenTracing.

Types

type Option

type Option func(*options)

Option is tracing option.

func WithTagId

func WithTagId(traceID string) Option

WithTagId set a traceid

func WithTracer

func WithTracer(tracer opentracing.Tracer) Option

WithTracer sets a custom tracer to be used for this middleware, otherwise the opentracing.GlobalTracer is used.

Jump to

Keyboard shortcuts

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