Skip to content

Conversation

@hairyhenderson
Copy link
Contributor

Description

Related to #4346 (doesn't fully resolve it, there's one more PR to come around that).

This truncates bodies that are larger than 8KiB to avoid unnecessarily large log lines, and large levels of memory consumption. This is only really relevant when debug logging is used, but debug should still be able to be used in production for certain purposes.

Checklist

  • I have tested this code
  • I have added unit test to cover this code
  • I have updated the documentation (README.md and /website/docs)
  • I have followed the contributing guide

@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for go-feature-flag-doc-preview ready!

Name Link
🔨 Latest commit 68356cf
🔍 Latest deploy log https://app.netlify.com/projects/go-feature-flag-doc-preview/deploys/6924a1499d4c5c0008ddb195
😎 Deploy Preview https://deploy-preview-4348--go-feature-flag-doc-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.18%. Comparing base (b146316) to head (68356cf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4348      +/-   ##
==========================================
+ Coverage   85.09%   85.18%   +0.09%     
==========================================
  Files         142      143       +1     
  Lines        5909     5925      +16     
==========================================
+ Hits         5028     5047      +19     
+ Misses        663      660       -3     
  Partials      218      218              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Owner

@thomaspoignant thomaspoignant left a comment

Choose a reason for hiding this comment

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

@hairyhenderson thanks for this PR, I have just updated the doc to be explicit that we can truncate the log.

@sonarqubecloud
Copy link

@kodiakhq kodiakhq bot merged commit 2c3d409 into thomaspoignant:main Nov 24, 2025
24 checks passed
@hairyhenderson hairyhenderson deleted the hairyhenderson/truncate-debug-body-dumps-4346 branch November 25, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants