nrecho

package module
v1.0.2-0...-0a94385 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

v3/integrations/nrecho-v3 GoDoc

Package nrecho instruments applications using https://github.com/oldfritter/echo v3.

import "github.com/oldfritter/go-agent/v3/integrations/nrecho-v3"

For more information, see godocs.

Documentation

Overview

Package nrecho instruments applications using https://github.com/oldfritter/echo v3.

Use this package to instrument inbound requests handled by an echo.Echo instance.

e := echo.New()
// Add the nrecho middleware before other middlewares or routes:
e.Use(nrecho.Middleware(app))

Example: https://github.com/oldfritter/go-agent/tree/master/v3/integrations/nrecho-v3/example/main.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(c echo.Context) *oldfritter.Transaction

FromContext returns the Transaction from the context if present, and nil otherwise.

func Middleware

func Middleware(app *oldfritter.Application) func(echo.HandlerFunc) echo.HandlerFunc

Middleware creates Echo middleware that instruments requests.

e := echo.New()
// Add the nrecho middleware before other middlewares or routes:
e.Use(nrecho.Middleware(app))

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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