echonewrelic

package module
v3.0.0-...-c140260 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 3 Imported by: 0

README

echo-newrelic

Echo middleware for New Relic

WARNING

You SHOULD consider using nrecho instead of this middleware in most cases. Please see an official documentation of New Relic for more details.

Usage

import echonewrelic "github.com/utgwkk/echo-newrelic/v3"

app, err := newrelic.NewApplication(...)

e.Use(echonewrelic.EchoMiddleware(app))

Documentation

Index

Constants

View Source
const TraceIDHeader = "X-NewRelic-Trace-Id"

TraceIDHeader defines a response header's name for AddTraceIDToHeaderMiddleware

Variables

This section is empty.

Functions

func AddTraceIDToHeaderMiddleware

func AddTraceIDToHeaderMiddleware() echo.MiddlewareFunc

AddTraceIDToHeaderMiddleware returns echo Middleware that adds trace ID to X-NewRelic-Trace-Id response header (must use after EchoMiddleware)

func EchoMiddleware

func EchoMiddleware(app *newrelic.Application) echo.MiddlewareFunc

EchoMiddleware returns echo Middleware integrated with New Relic agent (given with `app`)

Types

This section is empty.

Jump to

Keyboard shortcuts

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