Documentation ¶
Index ¶
- type DatastoreSegment
- type NewrelicApp
- func (a *NewrelicApp) RecordCustomEvent(eventType string, params map[string]interface{}) error
- func (a *NewrelicApp) RecordCustomMetric(name string, value float64) error
- func (a *NewrelicApp) Shutdown(timeout time.Duration)
- func (a *NewrelicApp) StartTransaction(name string, w http.ResponseWriter, r *http.Request) newrelic.Transaction
- func (a *NewrelicApp) WaitForConnection(timeout time.Duration) error
- type Transaction
- func (t *Transaction) AcceptDistributedTracePayload(newrelic.TransportType, interface{}) error
- func (t *Transaction) AddAttribute(key string, value interface{}) error
- func (t *Transaction) Application() newrelic.Application
- func (t *Transaction) BrowserTimingHeader() (*newrelic.BrowserTimingHeader, error)
- func (t *Transaction) CreateDistributedTracePayload() newrelic.DistributedTracePayload
- func (t *Transaction) End() error
- func (t *Transaction) GetLinkingMetadata() newrelic.LinkingMetadata
- func (t *Transaction) GetName() string
- func (t *Transaction) GetTraceMetadata() newrelic.TraceMetadata
- func (t *Transaction) Header() http.Header
- func (t *Transaction) Ignore() error
- func (t *Transaction) IsSampled() bool
- func (t *Transaction) NewGoroutine() newrelic.Transaction
- func (t *Transaction) NoticeError(err error) error
- func (t *Transaction) SetName(name string) error
- func (t *Transaction) SetWebRequest(newrelic.WebRequest) error
- func (t *Transaction) SetWebResponse(http.ResponseWriter) newrelic.Transaction
- func (t *Transaction) StartSegmentNow() newrelic.SegmentStartTime
- func (t *Transaction) Write([]byte) (int, error)
- func (t *Transaction) WriteHeader(int)
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) WriteHeader ¶
func (t *Transaction) WriteHeader(int)
Click to show internal directories.
Click to hide internal directories.