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 WithTracer ¶
func WithTracer(tracer opentracing.Tracer) Option
WithTracer sets a custom tracer to be used for this middleware, otherwise the opentracing.GlobalTracer is used.
Click to show internal directories.
Click to hide internal directories.