Skip to content
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

Ability to automatically flush log before impending Lambda timeout #36

Open
benkehoe opened this issue May 30, 2020 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@benkehoe
Copy link
Contributor

One of the frustrating things about running into a Lambda timeout when using structured logs is that nothing is logged. Ideally, when using metric_scope, it should be able to flush the log before the timeout expires using context.get_remaining_time_in_millis(), perhaps setting a property indicating this was the case (since there's a possibility the function actually does complete after the flush occurs and some logging was lost)

@jaredcnance jaredcnance added the enhancement New feature or request label Jun 1, 2020
@prasanthnarasimha
Copy link

@jaredcnance are there any updates on this ? Or any suggested workarounds ?

@benkehoe
Copy link
Contributor Author

@prasanthnarasimha I think this repo is unmaintained. It's been on my mind to fork it and implement some of these improvements

@markkuhn
Copy link
Contributor

markkuhn commented Jul 5, 2023

@benkehoe We have added this request to our queue and will look into it as soon as we can. Feel free to open a PR if you would like this change sooner and we can review it and publish for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants