kernelci / kernelci/kernelci-api
Include `username` in API logs
- Lingua principale
- Python
- Stelle
- 10
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In the case of authenticated queries from API, include the username in the API logs for debugging purposes.
For example, API log when a user subscribes to a channel looks like this:
```
kernelci-api | INFO: 172.20.0.1:42984 - "POST /latest/subscribe/node HTTP/1.1" 200 OK
```
That should contain `username` of requesting user:
```
kernelci-api | INFO: 172.20.0.1:42984 - staging.kernelci.org "POST /latest/subscribe/node HTTP/1.1" 200 OK
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start at the API request logging path for authenticated queries, using POST /latest/subscribe/node as the concrete entry point. Verify that the completed log includes the requesting username while preserving the existing request details, and exercise that subscription request to confirm the output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, observability
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100