-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Summary
The UserAgentConfigurator is exceeding the allowed 50 characters limit when users depend on multiple Powertools utilities because the names are being appended.
Example of a warning message from the AWS SDK
The configured appId 'PT/BATCH/2.5.0 PTENV/AWS_Lambda_java11/PT/LOGGING-LOG4J/2.5.0 PTENV/AWS_Lambda_java11/PT/TRACING/2.5.0 PTENV/AWS_Lambda_java11' is longer than the recommended maximum length of 50. This could result in not being able to transmit and log the whole user agent string, including the complete value of this string.
This behavior is unexpected and needs to be addressed.
Why is this needed?
This is needed to avoid logging warnings in user logs.
Which area does this relate to?
Governance
Solution
We should replace the utility names instead of appending and add a safeguard to avoid exceeding the 50 characters limit.
Acknowledgment
- This request meets Powertools for AWS Lambda (Java) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, TypeScript
Metadata
Metadata
Assignees
Labels
Type
Projects
Status