Validate annotation key-value type
- Lingua principale
- Python
- Stelle
- 338
- Fork
- 147
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
As per [document](https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-segment.html) X-Ray SDK accepts key-value pairs with string, number, or Boolean values for annotations. Now, in the case of customer adding key-value pairs other than these 3 supported data types SDK silently accepts other type and fail to add annotations which is undesired behavior. Instead, SDK should throw the error in the case of unaccepted types.
Solution: We probably can add a check to validate if data type is string, number, or Boolean
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando il punto di ingresso per la gestione delle coppie chiave-valore delle annotazioni e qualsiasi test che copra le annotazioni. Verifica come vengono accettati i valori string, number e Boolean, quindi definisci il comportamento completo come un errore esplicito per i tipi non supportati, senza modificare i valori supportati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- backend, observability-sre
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100