Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(opts ...Option) middleware.Middleware
Client returns a new client middleware for OpenTracing.
func Server ¶
func Server(opts ...Option) middleware.Middleware
Server returns 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.