Incompatible with Pynamodb 6.x
- Lingua principale
- Python
- Stelle
- 338
- Fork
- 147
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
With pynamodb 6.0.1, I got a test failure:
```
________________________________ test_exception ________________________________
def test_exception():
class SampleModel(Model):
class Meta:
region = 'us-west-2'
table_name = 'mytable'
sample_attribute = UnicodeAttribute(hash_key=True)
try:
SampleModel.describe_table()
except Exception:
pass
subsegments = xray_recorder.current_segment().subsegments
assert len(subsegments) == 1
subsegment = subsegments[0]
assert subsegment.name == 'dynamodb'
> assert len(subsegment.subsegments) == 0
E assert 1 == 0
E + where 1 = len([])
E + where [] = .subsegments
tests/ext/pynamodb/test_pynamodb.py:48: AssertionError
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da tests/ext/pynamodb/test_pynamodb.py e riproduci test_exception usando pynamodb 6.0.1. Traccia il motivo per cui il sottosegmento contiene un sottosegmento annidato, quindi verifica che il test passi con un sottosegmento dynamodb e senza sottosegmenti annidati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- observability-sre
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100