Documentation ¶
Overview ¶
Package echotrace enables golang.org/x/net/trace based request tracing for echo based servers.
Index ¶
Constants ¶
View Source
const ( // ContextKey is the key used to lookup the trace.Trace for the current // request from the echo.Context. ContextKey = "trace-context-key" )
Variables ¶
View Source
var Handler = echo.WrapHandler(http.HandlerFunc(trace.Traces))
Handler is a echo.HandlerFunc that serves the page of traces.
Functions ¶
func Middleware ¶
func Middleware(next echo.HandlerFunc) echo.HandlerFunc
Middleware is a echo.MiddlewareFunc that creates a new trace.Trace for the current request and sets in on the echo.Context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.