instrumentation

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseStatsDClient

func CloseStatsDClient()

func GetTx

func GetTx(ctx context.Context) (newrelic.Transaction, bool)

func IncrementAPIBackendRequestCount

func IncrementAPIBackendRequestCount(apiName, backendName string)

func IncrementAPIBackendStatusCount

func IncrementAPIBackendStatusCount(apiName, backendName string, httpStatusCode int)

func IncrementAPIRequestCount

func IncrementAPIRequestCount(apiName string)

func IncrementAPIStatusCount

func IncrementAPIStatusCount(apiName string, httpStatusCode int)

func IncrementCrashCount

func IncrementCrashCount()

func IncrementInternalAPIStatusCount

func IncrementInternalAPIStatusCount(aclName string, statusCode int)

func IncrementNotFound

func IncrementNotFound()

func IncrementTotalRequestCount

func IncrementTotalRequestCount()

func InitNewRelic

func InitNewRelic() newrelic.Application

func InitiateStatsDMetrics

func InitiateStatsDMetrics() error

func NewContextWithTransaction

func NewContextWithTransaction(ctx context.Context, tx newrelic.Transaction) context.Context

func NewRelicApp

func NewRelicApp() newrelic.Application

func NewTiming

func NewTiming() statsd.Timing

func ShutdownNewRelic

func ShutdownNewRelic()

func StartRedisSegmentNow

func StartRedisSegmentNow(op string, coll string, txn newrelic.Transaction) newrelic.DatastoreSegment

func StatsDClient

func StatsDClient() *statsd.Client

func TimeAPIBackendLatency

func TimeAPIBackendLatency(apiName, backendName string, timing statsd.Timing)

func TimeAPILatency

func TimeAPILatency(apiName string, timing statsd.Timing)

func TimeTotalLatency

func TimeTotalLatency(timing statsd.Timing)

Types

This section is empty.

Jump to

Keyboard shortcuts

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