Compact logging format for LoggingMetricPublisher
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
Description
### Describe the feature
This is a feature request to introduce a more compact [`LoggingMetricPublisher.Format`](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/metrics/LoggingMetricPublisher.Format.html) for [`LoggingMetricPublisher`](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/metrics/LoggingMetricPublisher.html).
The two available options today, `PLAIN` and `PRETTY` produce a lot of text that can be costly for storage if producing a lot of logs.
For example, the `PLAIN` option has a lot of redundanct, unnecessary information such as the class names (`MetricCollecition`), and repeating `name` and `value`.
We should introduce a third format, `COMPACT` that aims to be more compact but still human readable.
### Use Case
Emitting metrics to logs in a more cost effective way.
### Proposed Solution
_No response_
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS Java SDK version used
2.x
### JDK version used
N/A
### Operating System and version
N/A
Contributor guide
Assessment
This issue has not been assessed yet.