Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Add truncation to body into release/1.15.x #17745

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #17723 to be assessed for backporting due to the inclusion of the label backport/1.15.

The below text is copied from the body of the original PR.


Description

There is a bug in the error logs where the entire body of the request is output. Instead of using the request body in the error we should be using the body of the response and truncating it to a reasonable size and add an ellipsis.

Testing & Reproduction steps

We see this in our error codes with a large payload of metrics (https://go.hashi.co/cc-5248)

Links

DD Link to example of issue: https://go.hashi.co/cc-5248

PR Checklist

  • updated test coverage
  • [n/a] external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

Copy link
Collaborator

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 14, 2023 18:21 Inactive
@vercel vercel bot temporarily deployed to Preview – consul June 14, 2023 18:22 Inactive
@hc-github-team-consul-core hc-github-team-consul-core merged commit 9b469bc into release/1.15.x Jun 14, 2023
106 of 108 checks passed
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/chappie/CC-5248/lively-settling-ox branch June 14, 2023 18:33
@chapmanc chapmanc added the theme/enterprise Related to the Enterprise version of Consul (see https://www.consul.io/docs/enterprise) label Jun 19, 2023
@jira jira bot mentioned this pull request Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/enterprise Related to the Enterprise version of Consul (see https://www.consul.io/docs/enterprise)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants