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

feat: enable custom json fields truncation for bunyan #732

Closed cindy-peng closed 10 months ago

cindy-peng commented 10 months ago

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes #682 🦕

Expose the ability to provide customized list of entries to be truncated to be consistent with the behavior in nodejs-logging. The list will be prepended to default existing list in nodejs-logging, and custom-defined fields will be truncated first.