nrmock

package
v1.1.1-0...-65ae4a9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatastoreSegment

type DatastoreSegment struct {
	*newrelic.DatastoreSegment
	Txn       newrelic.Transaction
	StartTime newrelic.SegmentStartTime
	Finished  bool
}

func (*DatastoreSegment) End

func (m *DatastoreSegment) End() error

type NewrelicApp

type NewrelicApp struct {
	Tnx *Transaction
}

func (*NewrelicApp) RecordCustomEvent

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

func (*NewrelicApp) RecordCustomMetric

func (a *NewrelicApp) RecordCustomMetric(name string, value float64) error

func (*NewrelicApp) Shutdown

func (a *NewrelicApp) Shutdown(timeout time.Duration)

func (*NewrelicApp) StartTransaction

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

func (*NewrelicApp) WaitForConnection

func (a *NewrelicApp) WaitForConnection(timeout time.Duration) error

type Transaction

type Transaction struct {
	WasEnded bool
	// contains filtered or unexported fields
}

func (*Transaction) AcceptDistributedTracePayload

func (t *Transaction) AcceptDistributedTracePayload(newrelic.TransportType, interface{}) error

func (*Transaction) AddAttribute

func (t *Transaction) AddAttribute(key string, value interface{}) error

func (*Transaction) Application

func (t *Transaction) Application() newrelic.Application

func (*Transaction) BrowserTimingHeader

func (t *Transaction) BrowserTimingHeader() (*newrelic.BrowserTimingHeader, error)

func (*Transaction) CreateDistributedTracePayload

func (t *Transaction) CreateDistributedTracePayload() newrelic.DistributedTracePayload

func (*Transaction) End

func (t *Transaction) End() error

func (*Transaction) GetLinkingMetadata

func (t *Transaction) GetLinkingMetadata() newrelic.LinkingMetadata

func (*Transaction) GetName

func (t *Transaction) GetName() string

func (*Transaction) GetTraceMetadata

func (t *Transaction) GetTraceMetadata() newrelic.TraceMetadata

func (*Transaction) Header

func (t *Transaction) Header() http.Header

func (*Transaction) Ignore

func (t *Transaction) Ignore() error

func (*Transaction) IsSampled

func (t *Transaction) IsSampled() bool

func (*Transaction) NewGoroutine

func (t *Transaction) NewGoroutine() newrelic.Transaction

func (*Transaction) NoticeError

func (t *Transaction) NoticeError(err error) error

func (*Transaction) SetName

func (t *Transaction) SetName(name string) error

func (*Transaction) SetWebRequest

func (t *Transaction) SetWebRequest(newrelic.WebRequest) error

func (*Transaction) SetWebResponse

func (t *Transaction) SetWebResponse(http.ResponseWriter) newrelic.Transaction

func (*Transaction) StartSegmentNow

func (t *Transaction) StartSegmentNow() newrelic.SegmentStartTime

func (*Transaction) Write

func (t *Transaction) Write([]byte) (int, error)

func (*Transaction) WriteHeader

func (t *Transaction) WriteHeader(int)

Jump to

Keyboard shortcuts

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