Skip to content

Conversation

@FullyTyped
Copy link
Contributor

📬 Issue #, if available:

✍️ Description of changes:

This PR adds support for multi-tenancy, tenant-id is now available within the context, and logged as needed.

🔏 By submitting this pull request

  • I confirm that I've ran cargo +nightly fmt.
  • I confirm that I've ran cargo clippy --fix.
  • I confirm that I've made a best effort attempt to update all relevant documentation.
  • I confirm that my contribution is made under the terms of the Apache 2.0 license.

1. Missing documentation for the trace module in lambda-runtime/src/layers/mod.rs:
   • Added: /// Tracing utilities for Lambda runtime.

2. Missing documentation for the request_span function in lambda-runtime/src/layers/trace.rs:
   • Added documentation explaining what the function does and its behavior with different context parameters
cargo lambda invoke --data-ascii '{"test": "data"}'
```

The tenant ID will be None when testing locally unless you set up a mock runtime environment with the appropriate headers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's explain how to do this?

@@ -0,0 +1,57 @@
use serde_json::json;
Copy link
Member

@maxday maxday Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice test!

@maxday maxday self-requested a review January 6, 2026 16:10
@FullyTyped FullyTyped merged commit 607b990 into main Jan 6, 2026
28 checks passed
@FullyTyped FullyTyped deleted the multi-tenancy branch January 6, 2026 16:24
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.

2 participants