Skip to content

Feature request: Add TenantId to Logger default properties #4914

@svozza

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.

Metadata

Metadata

Assignees

Labels

confirmedThe scope is clear, ready for implementationfeature-requestThis item refers to a feature request for an existing or new utilitygood-first-issueSomething that is suitable for those who want to start contributing

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions