googleapis / nodejs-logging-bunyan

Node.js client integration between Stackdriver Logging and Bunyan.
https://cloud.google.com/logging/
Apache License 2.0
63 stars 34 forks source link

Expose jsonFieldsToTruncate #682

Closed seeARMS closed 10 months ago

seeARMS commented 1 year ago

It would be great to expose jsonFieldsToTruncate in this library. I'd love to pass in a list of custom fields I use frequently, to ensure they get truncated.

I frequently log entries that do not get truncated, since they're nested in some custom entry. Thus, they get dropped.

Another reference: https://github.com/googleapis/nodejs-logging-bunyan/issues/524

cindy-peng commented 10 months ago

Hi @seeARMS, I have submitted a PR to enable custom fields truncation in this repo. Please let me know if you have any further questions. Thank you!

seeARMS commented 8 months ago

Great! I noticed it's not included in the latest package published on npm (5.0.1) -- could we release a new package?