Skip to content

feat(aws_lambda): add aws_request_id and log_stream_name to the request context - #1624

Open
kushaldave002 wants to merge 1 commit into
slackapi:mainfrom
kushaldave002:feat/lambda-context-request-id
Open

kushaldave002 wants to merge 1 commit into
slackapi:mainfrom
kushaldave002:feat/lambda-context-request-id

Conversation

@kushaldave002

Copy link
Copy Markdown

Summary

Adds aws_request_id and log_stream_name from the AWS Lambda context object to BoltRequest.context in SlackRequestHandler, next to the existing aws_lambda_function_name and aws_lambda_invoked_function_arn. This makes them available to listeners and middleware for correlating logs with the Lambda invocation.

Fixes #1035

Testing

  • New test test_lambda_context_in_bolt_context in tests/adapter_tests/aws/test_aws_lambda.py sends a signed event through the handler and checks both values reach the Bolt context. It fails without the handler change.
  • Ran ./scripts/format.sh --no-install, ./scripts/lint.sh --no-install, ./scripts/run_mypy.sh --no-install (all pass) and pytest tests/adapter_tests/aws (22 passed).

Category

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Document pages under /docs
  • Others

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

@kushaldave002
kushaldave002 requested a review from a team as a code owner November 14, 2026 02:56
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @kushaldave002 to sign the Salesforce Inc. Contributor License Agreement.

@zimeg zimeg added enhancement New feature or request area:adapter semver:minor python Pull requests that update Python code labels Nov 14, 2026
@zimeg zimeg added this to the next milestone Nov 14, 2026
@mwbrooks

Copy link
Copy Markdown
Member

@kushaldave002 Could you sign the Salesforce CLA? We need it signed before we can continue with this PR. 🙏

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:adapter cla:missing enhancement New feature or request python Pull requests that update Python code semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AWS Lambda Adapter: Expose aws_request_id and log_stream_name in SlackRequestHandler context

3 participants