telemetry

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Global Newrelic Client
	NewrelicClient = newClient()
)

Functions

This section is empty.

Types

type NewRelicClient

type NewRelicClient struct {
	// contains filtered or unexported fields
}

Wrapper for newrelic.Application

func (*NewRelicClient) StartTransaction

func (c *NewRelicClient) StartTransaction(name string, w http.ResponseWriter, r *http.Request) Transaction

Wrapper to only start the transaction if the newrelic application struct was successfully instantiated

type Transaction

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

Wrapper for newrelic.Transaction

func (*Transaction) End

func (t *Transaction) End() error

Wrapper to end a transaction only if the newrelic transaction struct was created

Jump to

Keyboard shortcuts

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