-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add useragent to awsemfexporter #35748
Add useragent to awsemfexporter #35748
Conversation
681e09f
to
03723d0
Compare
03723d0
to
fc991c8
Compare
6acab1b
to
d3c54f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I continue to have the same concerns I previously expressed regarding use of the user agent header to exfiltrate information about the workload being processed.
language = truncate(language, attrLengthLimit) | ||
version = truncate(version, attrLengthLimit) | ||
value := ua.cache.Get(language) | ||
valueMap := make(map[string]struct{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name valueMap
may be a bit confusing, given that we are using this value to store a set of versions.
Can we update the variable name (e.g. versionSet
) and add comment that we are treating the map as a set?
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description
Cherry-picking from downstream: amazon-contributing#170
Changes include:
Some additional changes were included:
Testing:
Added unit test