FormidableLabs / FormidableLabs/pino-lambda
Formatter is very fragile
- Ngôn ngữ chính
- TypeScript
- Star
- 135
- Fork
- 14
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
https://github.com/pinojs/pino/blob/master/docs/api.md#messagekey-string
Configuring `messageKey` will cause the formatter to fail.
Additionally we configure a formatter for `level` which returns `status`, to meet Datadog's expectations https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes.
``` formatters: {
level: (label: string) => ({
status: label,
}),
},
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với tài liệu về messageKey trong docs/api.md và tái hiện lỗi bằng cấu hình formatter được nêu trong issue. Theo dõi cách messageKey và level formatter được xử lý cùng nhau; hoàn thành khi việc định dạng không còn thất bại và đầu ra của level vẫn sử dụng thuộc tính status mà Datadog mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, typescript
- Lĩnh vực
- backend, cloud, observability-sre
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100