Skip to content

[log] Add debug logging to proxy/router.go dispatch initialization and route matching - #9490

Merged
lpcox merged 1 commit into
mainfrom
log/proxy-router-dispatch-logging-e7c7cac099e59514
Jul 17, 2026
Merged

[log] Add debug logging to proxy/router.go dispatch initialization and route matching#9490
lpcox merged 1 commit into
mainfrom
log/proxy-router-dispatch-logging-e7c7cac099e59514

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

placeholder

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Go Logger Enhancement · 359.1 AIC · ⊞ 7.6K ·

… route matching

Add meaningful debug log calls to internal/proxy/router.go:

- init(): log total route count and dispatch bucket count after table build
- buildRouteDispatch(): log summary of indexed routes and catch-all count on completion
- MatchRoute(): log dispatch key and bucket sizes at function entry for route resolution tracing

These logs help diagnose routing issues by showing how many routes are
registered per dispatch bucket and what key is computed for incoming paths.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jul 16, 2026
@lpcox
lpcox marked this pull request as ready for review July 17, 2026 13:44
Copilot AI review requested due to automatic review settings July 17, 2026 13:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds debug visibility into proxy route dispatch initialization and matching.

Changes:

  • Logs dispatch table statistics during initialization.
  • Logs bucket selection details for each route match.
Show a summary per file
File Description
internal/proxy/router.go Adds dispatch-building and route-matching debug logs.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@lpcox
lpcox merged commit e65fa97 into main Jul 17, 2026
23 checks passed
@lpcox
lpcox deleted the log/proxy-router-dispatch-logging-e7c7cac099e59514 branch July 17, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants