FormidableLabs / FormidableLabs/pino-lambda

Doesn't work with buffered logging when multiple JSONs could be put into on chunk separated by newline

オープン
#54 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
135
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

説明

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Code Sandbox link

_No response_

### Bug report

```markdown
I would suggest to convert the library to pino transport using https://github.com/pinojs/pino-abstract-transport. Now it is very easy to crash a lambda after `JSON.parse` in the destination.ts is trying to parse a chunk containing smth like

{...}\n{...}
```
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず destination.ts と pino-abstract-transport のドキュメントを読み、バッファリングされたチャンクがどのように処理されるかを理解します。改行で区切られた 2 つの JSON オブジェクトを含むチャンクで失敗を再現し、その処理中にバッファリングされたロギングがクラッシュしなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, typescript
領域
backend, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。