Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTraceConfig is the default Trace middleware config. DefaultTraceConfig = TraceConfig{ Skipper: middleware.DefaultSkipper, ComponentName: defaultComponentName, IsBodyDump: false, } )
Functions ¶
Types ¶
type TraceConfig ¶
type TraceConfig struct { // Skipper defines a function to skip middleware. Skipper middleware.Skipper // OpenTracing Tracer instance which should be got before Tracer opentracing.Tracer // ComponentName used for describing the tracing component name ComponentName string // add req body & resp body to tracing tags IsBodyDump bool }
TraceConfig defines the config for Trace middleware.
Click to show internal directories.
Click to hide internal directories.