-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Optionally return a small portion of user logs for blocking invocations #3994
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
|
|
||
| def getTruncatedLogs(logs: ActivationLogs) = { | ||
| var totalLogSize = 0 | ||
| val maxLogSize = 1024 * 4 |
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.
Should be configurable per deployment.
|
this will hold up the active ack (and hence slow down activations) until some logs are available --- what's the criteria for getting logs to attach to the activation/active ack to avoid slowing down activations? how do you indicate that the activation should have logs or not (ie when you wait for logs and when you don't)? also this seems like something that can be solved entirely on the client side (cli) - why make backend changes for this? |
|
FWIW i think features like this should have issues and discussions on the dev list to iron out details and understand the implications before seeing the code. |
|
@rabbah, there is an optional query parameter for the invocation API that will allow logs to be shown. During development of actions, the developer should not care how fast actions execute if he or she is concerned with seeing logs from blocking invocations. |
Codecov Report
@@ Coverage Diff @@
## master #3994 +/- ##
==========================================
+ Coverage 76.34% 81.01% +4.67%
==========================================
Files 146 146
Lines 7084 7107 +23
Branches 440 439 -1
==========================================
+ Hits 5408 5758 +350
+ Misses 1676 1349 -327
Continue to review full report at Codecov.
|
|
This has been sitting in WIP, got stale and is inactive since 2 months. Any update? |
Description
Currently after invoking a blocking request, a user must call
activation getwith the corresponding activation ID to see associated logs. Changes here improve the development experience by optionally allowing a user to retrieve the last 4KB of user logs for blocking invocations.Related issue and scope
My changes affect the following components
Types of changes
Checklist: