hirosystems / hirosystems/stacks-devnet-api
Improve logging
Đang mở
Chưa có ai nhận issue này.
enhancement
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The following changes to the logging would have large effects downstream in our observability tools:
- Format logs in JSON - This would help our internal infra categorize and sort any keys found in the JSON log.
- Implement a logging standard and structure. Using common keys like
msgto provide the primary message of a log, andlevelto 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":"<internal_hostname>","reqId":"req-2q7","req":{"method":"GET","url":"/ping","hostname":"<external_hostname>,"remoteAddress":"10.1.130.44","remotePort":51265},"msg":"incoming request"}
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.