typnewrelic

package
v0.8.31 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrorMessage is echo context key that contain error message to be relay as NewRelic error
	ErrorMessage = "error-message"
)

Variables

View Source
var (
	// DefaultConfigName is default value for ConfigName
	DefaultConfigName = "NEWRELIC"
)

Functions

func Middleware

func Middleware(e *echo.Echo, nrApp nr.Application)

Middleware to initiation middleware for newrelic

func MiddlewareFunc

func MiddlewareFunc(app nr.Application) echo.MiddlewareFunc

MiddlewareFunc to capture error and panic to newrelic

Types

type Config

type Config struct {
	AppName string `default:"perftest-ms-session-go"`
	Key     string ``
}

Config is contain newrelic configuration

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module of new-relic TODO: use typgo.Module instead

func New

func New() *Module

New instance of new-relic module

func (*Module) Configurations added in v0.8.26

func (m *Module) Configurations() []*typgo.Configuration

Configurations the module

func (*Module) Constructors added in v0.8.26

func (*Module) Constructors() []*typgo.Constructor

Constructors of newreslice

func (*Module) WithConfigName

func (m *Module) WithConfigName(configName string) *Module

WithConfigName return new-relic module with new config-name

Jump to

Keyboard shortcuts

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