awslabs / awslabs/aws-lambda-powershell-runtime
JSON logging support
- 主要言語
- PowerShell
- スター
- 65
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
AWS Lambda offers support for both [plain-text and JSON format logs](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs-logformat.html).
Lambda exposes this configuration via the `AWS_LAMBDA_LOG_FORMAT` environment variable. It's currently missing from the [environment variable documentation](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime) (see case 175226052300866), but the variable appears to be set to either `Text` or `JSON` depending on customer configuration.
There's a couple of aspects to supporting this:
* Runtime-intrinsic logs (e.g. anything that's `Write-Host '[RUNTIME-<...>'`)
* Customer logs that use:
* Unstructured string-only logs (`Write-Debug`, `-Verbose`, `-Warning`)
* Unstructured partially-formatted logs (`Write-Host`)
* Structured logs via `Write-Information`
* Implicit log events (e.g. ErrorRecords generated from parser errors)
コントリビューションガイド
調査の方向性
まず、リンクされた AWS Lambda のロギングに関するドキュメントを読み、AWS_LAMBDA_LOG_FORMAT が、ランタイムに既に存在する Write-Host、Write-Debug、-Verbose、-Warning、Write-Information、および暗黙的な ErrorRecords の処理とどのように関係するかを追跡します。ランタイム固有、カスタマー、構造化、および暗黙的なログイベントについて、JSON とプレーンテキストの動作を定義して実装できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, powershell
- 領域
- cloud, observability-sre
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100