Skip to content

Maintenance: UA appId string exceeds 50 characters limit #2262

@phipag

Description

@phipag

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions