Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlerTracing ¶
func NewHandlerTracing(opts ...TracingOption) func(next http.Handler) http.Handler
NewHandlerTracing initializes opentracing context for handler level, via middleware
Types ¶
type TracingOption ¶
type TracingOption func(*tracingConfig)
TracingOption defines functional object for tracing option
func WithEnabledLog ¶
func WithEnabledLog(toggle bool) TracingOption
WithEnabledLog will set traceID log toggle
func WithLimitLogHTTPStatus ¶
func WithLimitLogHTTPStatus(httpStatus int) TracingOption
WithLimitLogHTTPStatus will set traceID logger if http status is equal above certain limit
Click to show internal directories.
Click to hide internal directories.