Compact logging format for LoggingMetricPublisher
- Vorherrschende Sprache
- Java
- Sterne
- 2.6k
- Forks
- 1k
- Ø Merge
- 2 T. 9 Std.
- Gemergte PRs (30 T.)
- 51
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne bei LoggingMetricPublisher und seiner verschachtelten Format API und verfolge dann die bestehenden PLAIN- und PRETTY-Ausgabepfade. Vergleiche deren Ausgabe, um zu bestimmen, welche Informationen entfernt werden können, während das Ergebnis menschenlesbar bleibt; abgeschlossen ist die Aufgabe, wenn ein drittes COMPACT-Format verfügbar ist und deutlich kürzere Metrikprotokolle erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- observability-sre
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100