Skip to content

Feature request: Add TenantId to Logger default properties #4914

Description

@svozza

Use case

With the new Lambda Tenant Isolation feature, we have access to the TenantId from the Lambda context object as described in the lambda documentation. We should add the this ID to the default properties in the Logging utility.

Solution/User Experience

{
    "level": "Information",
    "message": "User object: Doe, John (42)",
    "timestamp": "2025-04-07 09:06:30.708",
    "service": "user-service",
    "coldStart": true,
    // ...
    "tenantId": "cff02b3a-0e12-4be2-b3e0-758b49c4cd9b"
    // ...
}

Alternative solutions

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Activity

  1. added
    good-first-issue
    feature-request
    on Jan 6, 2026
  2. added
    confirmed
    on Jan 6, 2026
  3. kawaaaas commented on Jan 7, 2026

    @kawaaaas
    Contributor

    Hello! I would like to help out with this issue. May I be assigned to work on it?

  4. sdangol commented on Jan 7, 2026

    @sdangol
    Contributor

    Thanks @kawaaaas for offering to help. I've assigned it to you.

  5. powertools-for-aws-oss-automation commented on Jan 9, 2026

    @powertools-for-aws-oss-automation

    Warning

    This issue is now closed. Please be mindful that future comments are hard for our team to see.
    If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
    If you wish to keep having a conversation with other community members under this issue feel free to do so.

  6. moved this from Coming soon to Shipped in Powertools for AWS Lambda (TypeScript)on Jan 15, 2026
  7. removed
    feature-request
    confirmed
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good-first-issue

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions