Skip to content

docs: add Lambda invocation logging example - #172

Merged
robandpdx merged 1 commit into
masterfrom
lambda-logging
Nov 30, 2026
Merged

robandpdx merged 1 commit into
masterfrom
lambda-logging

Conversation

@robandpdx

Copy link
Copy Markdown
Collaborator

This pull request adds documentation on how to include AWS Lambda and request trace IDs in JSON logs when using a Pino logger and AsyncLocalStorage. The new section in the README.md provides step-by-step instructions and example code for associating invocation-specific fields with each log entry.

Logging and observability improvements:

  • Added a new "Logging invocation IDs" section to README.md, with example code showing how to use Pino and AsyncLocalStorage to enrich logs with Lambda invocation and request trace IDs, and guidance on safe logging practices.

Closes #115

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@robandpdx
robandpdx merged commit 97e41be into master Nov 30, 2026
7 checks passed
@robandpdx
robandpdx deleted the lambda-logging branch November 30, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log AWS and Custom Fields to AWS CloudWatch Log

1 participant