Feature request: Change powertools lambda context capture log key order #3091
Labels
discussing
The issue needs to be discussed, elaborated, or refined
feature-request
This item refers to a feature request for an existing or new utility
logger
This item relates to the Logger Utility
need-response
This item requires a response from a customer and will considered stale after 2 weeks
Use case
We were in the process of enabling the capturing of the lambda context in our logger.
Although we like the additional context, we didnt enable it because the actual logged message is only visible anymore when expanding the log message which makes it almost impossible to skim through log-message and spot the one which looks interesting because they all look the same in the x-ray-tracing-view and I would be forced to scroll sideways.
See this screenshot for reference:
Solution/User Experience
Is it possible for you to change the order of the logging keys exposed from capturing the lambda context and put it to the end by default (or after the message)?
Alternative solutions
Since v2.8.0 its also possible to define log key order on their own, see here: https://docs.powertools.aws.dev/lambda/typescript/latest/core/logger/#reordering-log-keys-position
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: