-
Notifications
You must be signed in to change notification settings - Fork 2.7k
exporter/awss3exporter: Update uniqueKey generation to use lowercase alphanumeric characters #39269
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
base: main
Are you sure you want to change the base?
exporter/awss3exporter: Update uniqueKey generation to use lowercase alphanumeric characters #39269
Conversation
…/opentelemetry-collector-contrib into fix_aws_s3exporter_uniquekey
|
||
// This follows the original "uniqueness" algorithm | ||
// This follows the original "uniqueness" algorithm |
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.
does it still follow the original uniqueness algorithm?
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 removed the existing comments since I'm not sure about the "original "uniqueness" algorithm".
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.
me neither. Thanks for removing it.
moving to draft ; please fix the compilation issues and mark ready for review again. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description
Summary
This update enhances the
uniqueKey()
method inPartitionKeyBuilder
by replacing the previous numeric-based key generation with a more robust alphanumeric format that includes both uppercase and lowercase letters.Key Changes
Key Generation Logic Updated
100000000
–999999999
)a–z
,A–Z
)a–z
,A–Z
,0–9
)Constants Introduced
letters
: allowed lowercase and uppercase alphabet characters (a–z
,A–Z
)digits
: allowed numeric characters (0–9
)length
: total length of the generated key (9
)Referring to this, the processing speed is also taken into account.
https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go/22892986#22892986
Link to tracking issue
N/A
Testing
Documentation
No documentation changes required as this is an internal implementation detail that
doesn't affect the public API or configuration.