Documentation ¶
Overview ¶
Package hnyecho has middleware to use with the Echo router.
Summary ¶
hnyecho provides Honeycomb instrumentation for the Echo router via middleware. It is recommended to put this middleware first in the chain via Echo.Use(). A Honeycomb event will be generated for every request that comes through your Echo router, with basic http fields added. In addition, route related fields will be added for that request route.
For a complete example showing this wrapper in use, please see the examples in https://github.com/honeycombio/beeline-go/tree/master/examples
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoWrapper ¶
type EchoWrapper struct {
// contains filtered or unexported fields
}
EchoWrapper provides Honeycomb instrumentation for the Echo router via middleware
func (*EchoWrapper) Middleware ¶
func (e *EchoWrapper) Middleware() echo.MiddlewareFunc
Middleware returns an echo.MiddlewareFunc to be used with Echo.Use()