newrelic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NewRelicTransaction = "__newrelic_transaction__"

Variables

This section is empty.

Functions

func Application

func Application() *newrelic.Application

func Debug

func Debug() bool

func FromContext

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

func IsEnabled

func IsEnabled() bool

func NewApplication

func NewApplication(ctx context.Context) (*newrelic.Application, error)

func NewLogger

func NewLogger() newrelic.Logger

Types

type Logger

type Logger struct {
}

func (*Logger) Debug

func (l *Logger) Debug(msg string, context map[string]interface{})

func (*Logger) DebugEnabled

func (l *Logger) DebugEnabled() bool

func (*Logger) Error

func (l *Logger) Error(msg string, context map[string]interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, context map[string]interface{})

func (*Logger) Warn

func (l *Logger) Warn(msg string, context map[string]interface{})

type MessageMetricKey

type MessageMetricKey struct {
	Library         string
	DestinationType string
	Consumer        bool
	DestinationName string
	DestinationTemp bool
}

MessageMetricKey is the key to use for message segments.

func (MessageMetricKey) Name

func (key MessageMetricKey) Name() string

Name returns the metric name value for this MessageMetricKey to be used for scoped and unscoped metrics.

Producers MessageBroker/{Library}/{Destination Type}/{Action}/Named/{Destination Name} MessageBroker/{Library}/{Destination Type}/{Action}/Temp

Consumers OtherTransaction/Message/{Library}/{DestinationType}/Named/{Destination Name} OtherTransaction/Message/{Library}/{DestinationType}/Temp

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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