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 ¶
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
Click to show internal directories.
Click to hide internal directories.