Skip to content

Update logging#67

Merged
dtpthao merged 8 commits into
mainfrom
thao/update_log
Nov 15, 2025
Merged

Update logging#67
dtpthao merged 8 commits into
mainfrom
thao/update_log

Conversation

@dtpthao
Copy link
Copy Markdown
Contributor

@dtpthao dtpthao commented Oct 19, 2025

No description provided.

@dtpthao dtpthao requested review from muse254 and stravid87 October 19, 2025 08:42
@dtpthao dtpthao changed the title Refactor logging Update logging Oct 19, 2025
Comment thread forward-proxy/src/handler/mod.rs
Comment thread forward-proxy/src/handler/mod.rs Outdated
Comment thread pingora-router/src/ctx.rs Outdated
Comment thread reverse-proxy/src/handler/common/consts.rs Outdated
Comment thread reverse-proxy/src/handler/init_tunnel/handler.rs Outdated
Comment thread utils/src/log.rs Outdated
Comment thread reverse-proxy/src/tls_conf.rs Outdated
@muse254
Copy link
Copy Markdown
Contributor

muse254 commented Oct 25, 2025

we can also update the pingora-router and utils crates to use tracing

@muse254
Copy link
Copy Markdown
Contributor

muse254 commented Oct 25, 2025

Lastly the json format on stdout for logs is not great for debugging ( we are losing on color-code highlights and logs are easier to read without nesting)
we can introduce an env for the toggle to json format

@dtpthao
Copy link
Copy Markdown
Contributor Author

dtpthao commented Oct 26, 2025

we can also update the pingora-router and utils crates to use tracing

utils already uses tracing and I've removed log usage in pingora-router, I think it's not neccessary to log there

@dtpthao
Copy link
Copy Markdown
Contributor Author

dtpthao commented Oct 26, 2025

Lastly the json format on stdout for logs is not great for debugging ( we are losing on color-code highlights and logs are easier to read without nesting) we can introduce an env for the toggle to json format

updated!

* update influxdb2 docker

* add statistics

* Remove await from update_statistic call and run in background with tokio::spawn

* remove certs folder copy in Dockerfiles and update influxdb2 tls feature in forward-proxy

* replace enum with constants

* check and update statistics for only valid requests

* add request correlationId and latency to logs

* remove log span because not working in cloud

* remove unnecessary debug logs
@dtpthao dtpthao merged commit 3721c6e into main Nov 15, 2025
0 of 2 checks passed
@dtpthao dtpthao deleted the thao/update_log branch November 15, 2025 18:22
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.

2 participants