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
{{ message }}
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
As a user, when passing maxEntrySize, I expect it to also truncate custom fields. In our case, one of our fields is a huge list of UUIDs that does not matter if it gets truncated a little, but should be there. However, it does not get truncated and in the end we get exceptions thrown in prod because our log entries are too big.
When setting maxEntrySize for a logger and using
jsonPayload, the truncation algorithm does not truncate all fields, but rather only a very small set of fields: https://github.com/googleapis/nodejs-logging/blob/master/src/log.ts#L984As a user, when passing maxEntrySize, I expect it to also truncate custom fields. In our case, one of our fields is a huge list of UUIDs that does not matter if it gets truncated a little, but should be there. However, it does not get truncated and in the end we get exceptions thrown in prod because our log entries are too big.