instrumentation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewRelicApp newrelic.Application

Functions

func InitNewRelic

func InitNewRelic() error

func Wrap

func Wrap(pattern string, handlerFunc http.HandlerFunc) (string, func(http.ResponseWriter, *http.Request))

Types

type StubNewRelicTransaction

type StubNewRelicTransaction struct{}

func (*StubNewRelicTransaction) AddAttribute

func (snrt *StubNewRelicTransaction) AddAttribute(key string, value interface{}) error

func (*StubNewRelicTransaction) End

func (snrt *StubNewRelicTransaction) End() error

func (*StubNewRelicTransaction) Header

func (snrt *StubNewRelicTransaction) Header() http.Header

func (*StubNewRelicTransaction) Ignore

func (snrt *StubNewRelicTransaction) Ignore() error

func (*StubNewRelicTransaction) NoticeError

func (snrt *StubNewRelicTransaction) NoticeError(err error) error

func (*StubNewRelicTransaction) SetName

func (snrt *StubNewRelicTransaction) SetName(name string) error

func (*StubNewRelicTransaction) StartSegmentNow

func (snrt *StubNewRelicTransaction) StartSegmentNow() newrelic.SegmentStartTime

func (*StubNewRelicTransaction) Write

func (snrt *StubNewRelicTransaction) Write([]byte) (int, error)

func (*StubNewRelicTransaction) WriteHeader

func (snrt *StubNewRelicTransaction) WriteHeader(int)

type StubNewrelicApp

type StubNewrelicApp struct{}

func (*StubNewrelicApp) RecordCustomEvent

func (sna *StubNewrelicApp) RecordCustomEvent(eventType string, params map[string]interface{}) error

func (*StubNewrelicApp) Shutdown

func (sna *StubNewrelicApp) Shutdown(timeout time.Duration)

func (*StubNewrelicApp) StartTransaction

func (sna *StubNewrelicApp) StartTransaction(name string, w http.ResponseWriter, r *http.Request) newrelic.Transaction

func (*StubNewrelicApp) WaitForConnection

func (sna *StubNewrelicApp) WaitForConnection(timeout time.Duration) error

Jump to

Keyboard shortcuts

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