package
3.36.0
Repository: https://github.com/newrelic/go-agent.git
Documentation: pkg.go.dev

# Functions

AddAgentAttribute allows instrumentation packages to add agent attributes.
AddAgentSpanAttribute allows instrumentation packages to add span attributes.
ConfigFullTraces enables distributed tracing and sets transaction trace and transaction trace segment thresholds to zero for full traces.
NewBasicTestApp creates an ExpectApp with the standard testing connect reply function and config.
NewTestApp creates an ExpectApp with the given ConnectReply function and Config function.

# Constants

This code below is used for testing and is based on the similar code in internal_test.go in the newrelic package.
This code below is used for testing and is based on the similar code in internal_test.go in the newrelic package.

# Variables

AppLogEnabledCfgFn enables application logging features.
BasicConfigFn is a default config function to be used when no special settings are needed for a test app.
DTEnabledCfgFn is a reusable Config function that sets Distributed Tracing to enabled.
SampleEverythingReplyFn is a reusable ConnectReply function that samples everything.

# Structs

ExpectApp combines Application and Expect, for use in validating data in test apps.