monitoring

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *newrelic.Transaction

FromContext extracts the transaction from the context.

func StartExternalSegment

func StartExternalSegment(ctx context.Context, req *http.Request) *newrelic.ExternalSegment

StartExternalSegment starts a newrelic external segment. It extracts the transaction from the context.

func StartSegment

func StartSegment(ctx context.Context, name string) *newrelic.Segment

StartSegment starts a newrelic segment. It extracts the transaction from the context.

Types

type Client

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

func NewClient

func NewClient() (Client, error)

func (Client) Application

func (c Client) Application() *newrelic.Application

Application returns the newrelic application.

func (Client) StartTransaction

func (c Client) StartTransaction(name string) *newrelic.Transaction

StartTransaction starts a newrelic transaction.

func (Client) StartTransactionContext

func (c Client) StartTransactionContext(ctx context.Context, name string) context.Context

StartTransactionContext starts a newrelic transaction and puts it in the context.

Jump to

Keyboard shortcuts

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