Skip to content

Conversation

kruskall
Copy link
Member

Use a logsapi client and add functional options to make it more
flexible in local or testing environments.

Add support for graceful shutdown to the HTTP server and only stop it
after the event has been processed to avoid race conditions on the log
channel.

Add more detailed errors and make sure they are wrapped to provide
appropriate context.

Rename and move code around for clarity.

Use a logsapi client and add functional options to make it more
flexible in local or testing environments.

Add support for graceful shutdown to the HTTP server and only stop it
after the event has been processed to avoid race conditions on the log
channel.

Add more detailed errors and make sure they are wrapped to provide
appropriate context.

Rename and move code around for clarity.
@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Jul 22, 2022
@ghost
Copy link

ghost commented Jul 22, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-07-25T22:38:34.422+0000

  • Duration: 8 min 30 sec

Test stats 🧪

Test Results
Failed 0
Passed 184
Skipped 64
Total 248

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

kruskall added 7 commits July 24, 2022 16:53
If StartService fails we can't assume the server started, so we
have the method clean after itself in case of error to improve
clarity and correctness.
Do not try to start the service if the logsapi is disabled.

Use defer clause to shutdown the service.
Basic test to make sure the log listener is handling
request correctly.
@kruskall kruskall requested a review from axw July 24, 2022 22:06
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Thanks @kruskall, those changes look good. I'm happy for the rest to be done in followup PRs.

@kruskall kruskall requested a review from axw July 25, 2022 21:13
@kruskall
Copy link
Member Author

Thank you for the feedback! 🙇

Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@kruskall kruskall merged commit 348fa55 into elastic:main Jul 26, 2022
@kruskall kruskall deleted the refactor/logsapi branch July 26, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants