hirosystems / hirosystems/stacks-devnet-api

Improve logging

Aperta
#83 0 commenti 0 reazioni 2 assegnatari Assegnata a @csgui Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
2
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The following changes to the logging would have large effects downstream in our observability tools:

1. Format logs in JSON - This would help our internal infra categorize and sort any keys found in the JSON log.
2. Implement a logging standard and structure. Using common keys like `msg` to provide the primary message of a log, and `level` to provide the logging level, etc would also help the downstream infrastructure.

Without these improvements, logs will be harder to search for and visualize in Grafana. Refer to the Platform API's logging structure for guidance:
```
{"level":"info","time":1699368500392,"pid":104,"hostname":"","reqId":"req-2q7","req":{"method":"GET","url":"/ping","hostname":","remoteAddress":"10.1.130.44","remotePort":51265},"msg":"incoming request"}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.