aws / aws/aws-sdk-java-v2

Compact logging format for LoggingMetricPublisher

Open
#6,840 0 comments 0 reactions 0 assignees View on GitHub
feature-request p2 sdk-metrics
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.