aws / aws/aws-sdk-java-v2

Compact logging format for LoggingMetricPublisher

Aperta
#6,840 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature-request p2 sdk-metrics
Lingua principale
Java
Stelle
2.6k
Fork
1k
Merge medio
2g 9h
PR unite (30g)
51

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Parti da LoggingMetricPublisher e dalla sua Format API annidata, quindi segui i percorsi di output PLAIN e PRETTY esistenti. Confronta i relativi output per determinare quali informazioni possono essere rimosse mantenendo il risultato leggibile per le persone; il lavoro è completato quando è disponibile un terzo formato COMPACT che produce log delle metriche sostanzialmente più brevi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
observability-sre
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.