awslabs / awslabs/aws-lambda-powershell-runtime

JSON logging support

Abierto
#40 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PowerShell
Estrellas
65
Forks
21
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza leyendo la documentación enlazada de AWS Lambda sobre el registro y rastreando cómo AWS_LAMBDA_LOG_FORMAT se relaciona con el manejo existente en el runtime de Write-Host, Write-Debug, -Verbose, -Warning, Write-Information y los ErrorRecords implícitos. Se considera terminado cuando se hayan definido e implementado los comportamientos JSON y de texto plano para eventos de registro intrínsecos del runtime, del cliente, estructurados e implícitos.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, powershell
Área
cloud, observability-sre
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.