core_metrics_newrelic

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TransactionContextKey is the key used for newrelic.FromContext and
	// newrelic.NewContext.
	TransactionContextKey = ctxKeyType(struct{}{})
)

Functions

This section is empty.

Types

type ServiceMetadata

type ServiceMetadata struct {
	// Name is the service name
	Name string
	// The version of the service actively deployed
	Version string
	// The service P.O.
	PointOfContact string
	// A link to documentation around the service's functionality and uses
	DocumentationLink string
	// The environment in which the service is actively running and deployed in
	Environment string
}

ServiceMetadata outlines important pieces of information pertaining to the service the data points making up this object should further aid the on-call engineer to properly root cause any ambiguities tied to a ny metrics

type ServiceMetricsEngine

type ServiceMetricsEngine struct {
	Havester *telemetry.Harvester
}

ServiceMetricsEngine encapsulates the registration functionality as well as the facility to emit metrics to the new relic platform for observance

func NewServiceMetricsEngine

func NewServiceMetricsEngine(licenseKey *string, serviceMetadata *ServiceMetadata) (*ServiceMetricsEngine, error)

NewServiceMetricsEngine returns a new instance of the service metrics engine

Jump to

Keyboard shortcuts

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