Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix: Setting maxEntrySize does not truncate big json payloads correctly#1177

Merged
losalex merged 10 commits intomainfrom
losalex/fix-1087
Dec 24, 2021
Merged

fix: Setting maxEntrySize does not truncate big json payloads correctly#1177
losalex merged 10 commits intomainfrom
losalex/fix-1087

Conversation

@losalex
Copy link
Copy Markdown
Contributor

@losalex losalex commented Nov 4, 2021

Add an ability to provide customized list of entries to be truncated. The list will be prepended to existing list of entries we truncate today by default, thus custom-defined fields will be truncated first

Fixes #1087 🦕

@product-auto-label product-auto-label Bot added the api: logging Issues related to the googleapis/nodejs-logging API. label Nov 4, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 4, 2021
@losalex losalex requested a review from minherz December 21, 2021 17:34
@losalex losalex marked this pull request as ready for review December 21, 2021 17:38
@losalex losalex requested review from a team December 21, 2021 17:38
Copy link
Copy Markdown
Contributor

@minherz minherz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check for conditions that allow null.

Comment thread src/log.ts Outdated
Comment thread src/log.ts Outdated
Comment thread test/log.ts
@minherz minherz self-requested a review December 24, 2021 06:15
Copy link
Copy Markdown
Contributor

@minherz minherz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address a null validation in line 1022 (see the discussion in review comments)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: logging Issues related to the googleapis/nodejs-logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting maxEntrySize does not truncate big json payloads correctly

2 participants