elastic / elastic/apm-agent-python
Investigate options and possible overhead of global string truncation
- Lingua principale
- Python
- Stelle
- 431
- Fork
- 239
- Merge medio
- 5g 10h
- PR unite (30g)
- 7
Descrizione
To ensure some user errors don't lead to overblown payload sizes, we want to truncate all strings in the payload to a max length, similar to what we already to with strings that are stored as keywords in Elasticsearch. This could potentially be quite overhead-heavy, so we need benchmarks of different approaches
* explicitly wrap all strings in a `maybe_truncate` function that either returns the string itself or, if necessary, a truncated version
* loop over the payload and truncate all strings before serializing
* modify `JSONSerializer` to truncate strings
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con JSONSerializer e con il percorso di serializzazione del payload descritto nell’issue. Esegui un benchmark dei tre approcci di troncamento elencati, incluso il loro overhead, e documenta i risultati e l’approccio consigliato; l’issue non specifica né la lunghezza massima né un obiettivo di test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend, performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100