-
Notifications
You must be signed in to change notification settings - Fork 361
Comparing changes
Open a pull request
base repository: awslabs/aws-lambda-rust-runtime
base: lambda-extension-0.8.2
head repository: awslabs/aws-lambda-rust-runtime
compare: lambda-extension-0.9.0
- 15 commits
- 56 files changed
- 9 contributors
Commits on Nov 17, 2023
-
Fix typo in LogBuffering struct documentation (#731)
Co-authored-by: Titus Bridgwood <titus.bridgwood@dunelm.com>
Configuration menu - View commit details
-
Copy full SHA for d3e365c - Browse repository at this point
Copy the full SHA d3e365cView commit details
Commits on Nov 20, 2023
-
Remove function config allocations per invocation. (#732)
Every invocation clones the function config. This allocates memory in the heap for no reason. This change removes those extra allocations by wrapping the config into an Arc and sharing that between invocations. Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 53637e7 - Browse repository at this point
Copy the full SHA 53637e7View commit details
Commits on Nov 28, 2023
-
Extract the request ID without allocating extra memory. (#735)
Changes the way that the Context is initialized to receive the request ID as an argument. This way we also avoid allocating additional memory for it. Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b7df6fc - Browse repository at this point
Copy the full SHA b7df6fcView commit details -
These types are not used anywhere. Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3c53476 - Browse repository at this point
Copy the full SHA 3c53476View commit details
Commits on Dec 1, 2023
-
* Fix field types: - ls_nd must be an AnyDocument - cluster_time must be optional, because it's new at version 4.0 * Fields bug fix
Configuration menu - View commit details
-
Copy full SHA for 1e4e203 - Browse repository at this point
Copy the full SHA 1e4e203View commit details
Commits on Dec 3, 2023
-
Support internal Lambda extensions (#744)
* Support internal Lambda extensions Internal Lambda extensions must be registered during the Lamba lifecycle Init phase, which ends when the runtime calls Next to await the first event. Since the `Extension::run` function both registers and executes the extension, there was previously no way for the runtime to determine that all internal extensions have been registered and that it's safe to proceed to the Invoke lifecycle phase. This change introduces an `Extension::register` method that registers the extension and begins any logs/telemetry handlers. It then returns a new `RegisteredExtension` abstraction that can be used to invoke the extension's run loop concurrently with the runtime's run loop. This change maintains backward compatibility by having the existing `Extension::run` method perform both steps. External Lambda extensions can use either API, and internal extensions should use the new API. Resolves #743. * Add example * Set extension name in example * Remove unnecessary Arc/Mutex
Configuration menu - View commit details
-
Copy full SHA for 6e953eb - Browse repository at this point
Copy the full SHA 6e953ebView commit details
Commits on Dec 4, 2023
-
add lambda event agent for amazon bedrock (#746)
* add lambda event agent for amazon bedrock * add comment for properties * add comment for AgentEvent * add check-event-features for bedrock * remove duplicated module * fix invalid naming * apply formatting
Configuration menu - View commit details
-
Copy full SHA for 3231e9f - Browse repository at this point
Copy the full SHA 3231e9fView commit details
Commits on Dec 6, 2023
-
Made some properties of Bedrock's Event optional. (#748)
* change some properties to optional value * Update lambda-events/src/event/bedrock_agent_runtime/mod.rs add default value to parameters Co-authored-by: David Calavera <david.calavera@gmail.com> * Update lambda-events/src/event/bedrock_agent_runtime/mod.rs add default to request_body Co-authored-by: David Calavera <david.calavera@gmail.com> --------- Co-authored-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d513b13 - Browse repository at this point
Copy the full SHA d513b13View commit details
Commits on Dec 14, 2023
-
Remove #[serde(deny_unknown_fields)] (#753)
Adding new fields to request payloads is typically not considered to be a breaking change, but using #[serde(deny_unknown_fields)] would cause all Lambda functions to start failing immediately in production if a new feature were deployed that added a new request field. Fixes #750.
Configuration menu - View commit details
-
Copy full SHA for 9b21cd0 - Browse repository at this point
Copy the full SHA 9b21cd0View commit details
Commits on Dec 15, 2023
-
Add session_issuer field to SessionContext (#751)
* Add session_issuer field to SessionContext * Update lambda-events/src/event/s3/object_lambda.rs Co-authored-by: David Calavera <david.calavera@gmail.com> --------- Co-authored-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a2ae8b - Browse repository at this point
Copy the full SHA 2a2ae8bView commit details
Commits on Dec 16, 2023
-
Config::from_env never returns an error. (#754)
We don't need to return Result because the function either panics or returns the Ok value. Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fb86ebc - Browse repository at this point
Copy the full SHA fb86ebcView commit details
Commits on Dec 18, 2023
-
* chore: update hyper/http * chore: update hyper with legacy * Create new workspace dependencies. This makes tracking versions across packages easier. Signed-off-by: David Calavera <david.calavera@gmail.com> * Bring helpers to work with Hyper 1. Copy some of the utils that Axum created to support Hyper 1. Signed-off-by: David Calavera <david.calavera@gmail.com> * Upgrade lambda_runtime to Hyper 1. Signed-off-by: David Calavera <david.calavera@gmail.com> * Upgrade lambda_http to Hyper 1. Signed-off-by: David Calavera <david.calavera@gmail.com> * Update Axum examples to version 0.7. Signed-off-by: David Calavera <david.calavera@gmail.com> * Make extensions compile. Switch to use hyper::service::service_fn definitions. Implement new Hyper's polling loop for http connections. Signed-off-by: David Calavera <david.calavera@gmail.com> * Update tower-http to make cors example work. Signed-off-by: David Calavera <david.calavera@gmail.com> * Update tower-http to make tower-trace example work. Signed-off-by: David Calavera <david.calavera@gmail.com> * Make less copies of extension services. Signed-off-by: David Calavera <david.calavera@gmail.com> * Bring Body::channel implementation from Hyper Given the lack of a public implementation anymore, we don't have other choice but copying Hyper's private implementation. Signed-off-by: David Calavera <david.calavera@gmail.com> * Organize more dependencies. Signed-off-by: David Calavera <david.calavera@gmail.com> * Cleanup commented code. Signed-off-by: David Calavera <david.calavera@gmail.com> * Cleanup unused dependencies. Signed-off-by: David Calavera <david.calavera@gmail.com> * Introduce a module to group all streaming functionality. This makes the streaming functionallity more concise. It aliases other functionality to keep backwards compatibility. Signed-off-by: David Calavera <david.calavera@gmail.com> * Remove unnecesary loop. Signed-off-by: David Calavera <david.calavera@gmail.com> * Don't re-export `lambda_runtime_api_client::body`. Signed-off-by: David Calavera <david.calavera@gmail.com> --------- Signed-off-by: David Calavera <david.calavera@gmail.com> Co-authored-by: Spencer C. Imbleau <spencer@imbleau.com>
Configuration menu - View commit details
-
Copy full SHA for 07430f1 - Browse repository at this point
Copy the full SHA 07430f1View commit details -
Fix EventBridge event structures. (#755)
According to the docs, the detail is always a JSON object: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events-structure.html Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 953b2d2 - Browse repository at this point
Copy the full SHA 953b2d2View commit details
Commits on Dec 20, 2023
-
Implement Serialize for lambda telemetry (#759)
* Add serialize testing mod and macro * Use and derive serialize * Skip serialize if None on Options * Add unit tests for serialization
Configuration menu - View commit details
-
Copy full SHA for ead7f37 - Browse repository at this point
Copy the full SHA ead7f37View commit details -
Release new versions compatible with Hyper 1 (#756)
Signed-off-by: David Calavera <david.calavera@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ab3b809 - Browse repository at this point
Copy the full SHA ab3b809View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff lambda-extension-0.8.2...lambda-extension-0.9.0