You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our use case, the requests and responses frequently contain large images (up to several megabytes in size), which get dumped to the log in their entirety. This creates several problems:
It's hard to visually examine the logs, because the request/response bodies fill up the screen.
When the maximum log size is capped, much fewer log entries are retained, because the bodies consume most of the allotted size.
Feature Description
The request and response bodies should be trimmed to a reasonable size (e.g. 1000 characters).
It also wouldn't be unreasonable to just omit them entirely. AFAIK, logging bodies is not common in web servers.
Alternative Solutions
It would be possible to work around this by e.g. postprocessing the logs, but it would be pretty annoying to implement.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Hi @SpecLad - few questions
why would you include large images as part of nuclio dashboard's? which user flow require you to send nuclio dashboard an image? part of function arbitrary fields (annotation, etc)?
in addition to that, you may increase nuclio dashboard logger level to INFO ignoring such log lines.
why would you include large images as part of nuclio dashboard's? which user flow require you to send nuclio dashboard an image? part of function arbitrary fields (annotation, etc)?
I'm just calling a function via /api/function_invocations. My functions usually take an image as input (and some output fairly large blobs, as well).
in addition to that, you may increase nuclio dashboard logger level to INFO ignoring such log lines.
Yeah, but I think that would suppress HTTP logs completely, which I don't want.
@SpecLad another workaround would be to invoke your function directly using its invocation URLs, instead of using the function_invocations api that goes through the dashboard.
Feature Type
Adding new functionality to Nuclio
Changing existing functionality in Nuclio
Removing existing functionality in Nuclio
Problem Description
When the Nuclio dashboard logs an HTTP request, it dumps the full request and response bodies, as seen here:
nuclio/pkg/restful/middleware/middleware.go
Lines 115 to 134 in 04497d2
In our use case, the requests and responses frequently contain large images (up to several megabytes in size), which get dumped to the log in their entirety. This creates several problems:
Feature Description
The request and response bodies should be trimmed to a reasonable size (e.g. 1000 characters).
It also wouldn't be unreasonable to just omit them entirely. AFAIK, logging bodies is not common in web servers.
Alternative Solutions
It would be possible to work around this by e.g. postprocessing the logs, but it would be pretty annoying to implement.
Additional Context
No response
The text was updated successfully, but these errors were encountered: