newrelic

package
v0.0.0-...-fb7d9fd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Setup env JSON value:

goboot_newrelic={
  "enable": true,
  "name: "Your_App_Name",
  "license: "__YOUR_NEW_RELIC_LICENSE_KEY__"
}

Index

Constants

This section is empty.

Variables

View Source
var (
	Application newrelic.Application
	Config      newrelic.Config
)

Functions

func HandleFuncAdapter

func HandleFuncAdapter(handler func(http.ResponseWriter, *http.Request), name ...string) func(http.ResponseWriter, *http.Request)

func Trace

func Trace(fn func(), name ...string) (err error)

Types

type NewRelicEnv

type NewRelicEnv struct {
	Enable  bool   `env:"goboot_newrelic.enable"`
	Name    string `env:"goboot_newrelic.name"`
	License string `env:"goboot_newrelic.license"`
}

Jump to

Keyboard shortcuts

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