instrumentation

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRelicApplication

func NewRelicApplication(config newrelic.Config) (newrelic.Application, error)

NewRelicApplication create new relic application

func NewRelicDataStoreSegment

func NewRelicDataStoreSegment(ctx context.Context, product newrelic.DatastoreProduct, queryParams map[string]interface{},
	collection, operation, query, host, port, databaseName string) func()

NewRelicDataStoreSegment used for send database data to new relic defer NewRelicDataStoreSegment(...)()

func NewRelicExternalSegment

func NewRelicExternalSegment(ctx context.Context, request *http.Request, url string) *newrelic.ExternalSegment

NewRelicExternalSegment used for send external data request to new relic segment := NewRelicExternalSegment(...) resp, err := client.Do(request) segment.Response = resp segment.End()

Types

This section is empty.

Jump to

Keyboard shortcuts

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