Open seeARMS opened 7 months ago
Hi @seeARMS, are you still running into this issue? If the GRPC options didn't work for you, could you also share the parameters you set?
Hi @seeARMS, are you still running into this issue? If the GRPC options didn't work for you, could you also share the parameters you set?
Where do I set those gRPC options? I mentioned in the OP that I'm using the logging bunyan Express middleware and the gRPC options don't get passed down
I'm also facing this issue with our services, where we see outages on our production servers due to accidental large log entries (which is very annoying :( ). @seeARMS, did you find a way to pass those options on to the Express middleware?
Also @cindy-peng - would you like a repro of the issue in a repository somewhere for better inspection?
Hi @pedroyan, are you also using the Express middleware? If so, do you mind also sharing your latest repro? Thank you!
I am having the exact same issue described here: https://github.com/googleapis/nodejs-logging-bunyan/issues/14
Throughout the codebase, occasionally (and accidentally) I am logging very large entries, and encountering an exception which crashes the server:
I am using the logging-bunyan Express middleware as follows:
It doesn't look like I'm able to pass in the arguments to this middleware as per the solution described here: https://github.com/googleapis/gax-nodejs/issues/157#issuecomment-345335610
maxEntrySize also doesn't seem to properly truncate.
Ideally, I don't care as much about truncating; I just want to properly handle the exception and not crash the server whenever I inadvertently attempt to log a massive entry.
Environment details
@google-cloud/logging-bunyan
version: 4.2.2