Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTraceConfig is the default Trace middleware config. DefaultTraceConfig = TraceConfig{ Skipper: echo.DefaultSkipper, // contains filtered or unexported fields } )
Functions ¶
func Trace ¶
func Trace(tracer opentracing.Tracer) echo.MiddlewareFunc
Trace returns a Trace middleware.
Trace middleware traces http requests and reporting errors.
func TraceWithConfig ¶
func TraceWithConfig(config TraceConfig) echo.MiddlewareFunc
TraceWithConfig returns a Trace middleware with config. See: `Trace()`.
Types ¶
type TraceConfig ¶
type TraceConfig struct { // Skipper defines a function to skip middleware. Skipper echo.Skipper // contains filtered or unexported fields }
TraceConfig defines the config for Trace middleware.
Click to show internal directories.
Click to hide internal directories.