Skip to content

Feature request: Add tentant_id field to Context object and propagate to logger #6799

@leandrodamascena

Description

@leandrodamascena

Use case

AWS Lambda RIC added a new field called tenant_id and we need to add this field to the context. This must be a string.

Also, I tested functions that already exists and new one and all of them are sending this context right now.

LambdaContext([aws_request_id=faf26568-ecb9-454b-a8f2-ff426c2fe22e,log_group_name=/aws/lambda/myfuncp13,log_stream_name=2025/06/12/[$LATEST]4c6c2d6baa594a008b5aeeea5017d6f4,function_name=myfuncp13,memory_limit_in_mb=128,function_version=$LATEST,invoked_function_arn=arn:aws:lambda:us-east-1:xxxxxx:function:myfuncp13,client_context=None,identity=CognitoIdentity([cognito_identity_id=None,cognito_identity_pool_id=None]),tenant_id=None])

Solution/User Experience

Add this field to the Context object and log it when injecting Lambda context.

Alternative solutions

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions