-
Notifications
You must be signed in to change notification settings - Fork 361
feat(lambda-extension): Logs API processor #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: David Calavera <[email protected]>
- Reorganize builder to support more options - Use no-op processors to play nice with generic types Signed-off-by: David Calavera <[email protected]>
Signed-off-by: David Calavera <[email protected]>
Send request to the Lambda API to subscribe the extension to the logs API. Use the 2021-03-18 schema version to receive all new log types. Signed-off-by: David Calavera <[email protected]>
Signed-off-by: David Calavera <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nmoutschen can you update the README.md in the lambda-extension directory with information about the logs api support?
Done! I've added a simple example with a logs processor. |
…ust-runtime into logs_api_connection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤘
@@ -0,0 +1,23 @@ | |||
use lambda_extension::{service_fn, Error, Extension, LambdaLog, LambdaLogRecord, SharedService}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this example is so good! 🙀
@@ -0,0 +1,51 @@ | |||
use lambda_extension::{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another great example! 😻
Issue #, if available:
Closes #392
Closes #396
Description of changes:
Register the extension with the logs API, boot an http server in a new tokio task, and process incoming logs.
By submitting this pull request