Versions in this module Expand all Collapse all v3 v3.3.9 Mar 16, 2022 Changes in this version + const DefaultConfigurableEventHarvestMs + const MaxCustomEvents + const MaxErrorEvents + const MaxPayloadSizeInBytes + const MaxTxnEvents + const TraceIDHexStringLen + var GinTransactionContextKey = "newRelicTransaction" + var MatchAnyString = "xxANY-STRINGxx" + var MatchAnything = uniquePointer() + var TransactionContextKey = contextKeyType(struct{}{}) + func AddAgentSpanAttribute(txn interface{}, key string, val string) + func CalculateApdexThreshold(c *ConnectReply, txnName string) time.Duration + func CompactJSONString(js string) string + func CreateFullTxnName(input string, reply *ConnectReply, isWeb bool) string + func FloatSecondsToDuration(seconds float64) time.Duration + func GetUsageSupportabilityMetrics() []string + func HarvestTesting(app interface{}, replyfn func(*ConnectReply)) + func IsDisconnectSecurityPolicyError(e error) bool + func ServerlessWrite(app interface{}, arn string, writer io.Writer) + func TrackUsage(s ...string) + type AddAgentAttributer interface + AddAgentAttribute func(name string, stringVal string, otherVal interface{}) + type AddAgentSpanAttributer interface + AddAgentSpanAttribute func(key string, val string) + type AgentRunID string + func (id AgentRunID) String() string + type ConnectReply struct + AccountID string + AgentLoader string + ApdexThresholdSeconds float64 + AppID string + Beacon string + BrowserKey string + CollectAnalyticsEvents bool + CollectCustomEvents bool + CollectErrorEvents bool + CollectErrors bool + CollectSpanEvents bool + CollectTraces bool + CrossProcessID string + DistributedTraceTimestampGenerator func() time.Time + EncodingKey string + EntityGUID string + ErrorBeacon string + EventData EventHarvestConfig + JSAgentFile string + KeyTxnApdex map[string]float64 + MaxPayloadSizeInBytes int + Messages []struct{ ... } + MetricRules MetricRules + PrimaryAppID string + RequestHeadersMap map[string]string + RunID AgentRunID + SamplingTarget uint64 + SamplingTargetPeriodInSeconds int + SegmentTerms segmentRules + ServerSideConfig struct{ ... } + TraceIDGenerator *TraceIDGenerator + TraceObsDialer DialerFunc + TrustedAccountKey string + TrustedAccounts TrustedAccountSet + TxnNameRules MetricRules + URLRules MetricRules + func ConnectReplyDefaults() *ConnectReply + func UnmarshalConnectReply(body []byte, preconnect PreconnectReply) (*ConnectReply, error) + func (r *ConnectReply) ConfigurablePeriod() time.Duration + func (r *ConnectReply) SetSampleEverything() + func (r *ConnectReply) SetSampleNothing() + type DialerFunc func(context.Context, string) (net.Conn, error) + type EventHarvestConfig struct + Limits struct{ ... } + ReportPeriodMs int + func DefaultEventHarvestConfig(maxTxnEvents int) EventHarvestConfig + type Expect interface + ExpectCustomEvents func(t Validator, want []WantEvent) + ExpectErrorEvents func(t Validator, want []WantEvent) + ExpectErrors func(t Validator, want []WantError) + ExpectMetrics func(t Validator, want []WantMetric) + ExpectMetricsPresent func(t Validator, want []WantMetric) + ExpectSlowQueries func(t Validator, want []WantSlowQuery) + ExpectSpanEvents func(t Validator, want []WantEvent) + ExpectTxnEvents func(t Validator, want []WantEvent) + ExpectTxnMetrics func(t Validator, want WantTxn) + ExpectTxnTraces func(t Validator, want []WantTxnTrace) + type HarvestTestinger interface + HarvestTesting func(replyfn func(*ConnectReply)) + type MessageMetricKey struct + Consumer bool + DestinationName string + DestinationTemp bool + DestinationType string + Library string + func (key MessageMetricKey) Name() string + type MetricRules []*metricRule + func (rules *MetricRules) UnmarshalJSON(data []byte) (err error) + func (rules MetricRules) Apply(input string) string + func (rules MetricRules) Len() int + func (rules MetricRules) Less(i, j int) bool + func (rules MetricRules) Swap(i, j int) + type PreconnectReply struct + Collector string + SecurityPolicies SecurityPolicies + type SecurityPolicies struct + AllowRawExceptionMessages securityPolicy + AttributesInclude securityPolicy + CustomEvents securityPolicy + CustomParameters securityPolicy + RecordSQL securityPolicy + func (sp *SecurityPolicies) PointerIfPopulated() *SecurityPolicies + func (sp *SecurityPolicies) UnmarshalJSON(data []byte) (er error) + type ServerlessWriter interface + ServerlessWrite func(arn string, writer io.Writer) + type TraceIDGenerator struct + func NewTraceIDGenerator(seed int64) *TraceIDGenerator + func (tg *TraceIDGenerator) Float32() float32 + func (tg *TraceIDGenerator) GenerateSpanID() string + func (tg *TraceIDGenerator) GenerateTraceID() string + type TrustedAccountSet map[int]struct + func (t *TrustedAccountSet) IsTrusted(account int) bool + func (t *TrustedAccountSet) UnmarshalJSON(data []byte) error + type Validator interface + Error func(...interface{}) + type WantError struct + AgentAttributes map[string]interface{} + Klass string + Msg string + TxnName string + UserAttributes map[string]interface{} + type WantEvent struct + AgentAttributes map[string]interface{} + Intrinsics map[string]interface{} + UserAttributes map[string]interface{} + type WantMetric struct + Data []float64 + Forced interface{} + Name string + Scope string + type WantSlowQuery struct + Count int32 + DatabaseName string + Host string + MetricName string + Params map[string]interface{} + PortPathOrID string + Query string + TxnName string + TxnURL string + type WantTraceSegment struct + Attributes map[string]interface{} + Children []WantTraceSegment + RelativeStartMillis interface{} + RelativeStopMillis interface{} + SegmentName string + type WantTxn struct + IsWeb bool + Name string + NumErrors int + type WantTxnTrace struct + AgentAttributes map[string]interface{} + DurationMillis *float64 + Intrinsics map[string]interface{} + MetricName string + NumSegments int + Root WantTraceSegment + UserAttributes map[string]interface{} Other modules containing this package github.com/Easypay/go-agent