hnyecho

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 7

README

Documentation available via godoc

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/main/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 New

func New() *EchoWrapper

New returns a new EchoWrapper struct

func (*EchoWrapper) Middleware

func (e *EchoWrapper) Middleware() echo.MiddlewareFunc

Middleware returns an echo.MiddlewareFunc to be used with Echo.Use()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL