newrelic / go-agent

New Relic Go Agent
Apache License 2.0
762 stars 294 forks source link

Update CLM to new spec requirements for attribute truncation #595

Open MadScienceZone opened 1 year ago

MadScienceZone commented 1 year ago

The Go agent reports all CLM data regardless of length. However, since generally speaking transaction attributes may be no longer than 255 characters, these attributes will end up getting truncated if, e.g., a function or path name is over that length. However, a truncated file or function name is useless for subsequent use by CLM since the true, full name is missing.

Instead, implement the following logic to handle any cases where the CLM attributes would be too long:

For any given trace:

nr-swilloughby commented 1 year ago

Sorry, I was signed in from my personal github account when I posted that issue :/