Skip to content

feat: log proxy headers in trace log#659

Closed
steveiliop56 wants to merge 2 commits into
mainfrom
steveiliop56-patch-1
Closed

feat: log proxy headers in trace log#659
steveiliop56 wants to merge 2 commits into
mainfrom
steveiliop56-patch-1

Conversation

@steveiliop56
Copy link
Copy Markdown
Member

@steveiliop56 steveiliop56 commented Feb 20, 2026

Summary by CodeRabbit

  • Chores
    • Enhanced internal logging for system diagnostics and troubleshooting capabilities.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 20, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

A trace-level log statement is added to the proxy controller to record the x-forwarded-proto, x-forwarded-host, and x-forwarded-uri headers immediately after retrieving the request URI, protocol, and host values.

Changes

Cohort / File(s) Summary
Logging Enhancement
internal/controller/proxy_controller.go
Added trace-level logging for proxy headers (x-forwarded-proto, x-forwarded-host, x-forwarded-uri) to improve observability of forwarded request metadata.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A trace of clarity through the proxy's gleam,
Headers logged like breadcrumbs in a developer's dream,
X-forwarded whispers now visible to all,
Little hops of debugging when things do fall! 🔍

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch steveiliop56-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.64%. Comparing base (e4c4e34) to head (2e4b6f2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #659      +/-   ##
==========================================
+ Coverage   15.61%   15.64%   +0.02%     
==========================================
  Files          49       49              
  Lines        3592     3593       +1     
==========================================
+ Hits          561      562       +1     
  Misses       2974     2974              
  Partials       57       57              

☔ 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant