-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Use release_max_level_trace instead #4554
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
What does |
|
Not sure about this. It's also the difference between tracing and debugging |
|
@Twey It actually does nothing 😅 i.e. it's the same as if we remove it, I think. |
568a3b0 to
3d9a544
Compare
d7b6485 to
62be5ef
Compare
62be5ef to
f768ed5
Compare
3d9a544 to
7c77512
Compare
f768ed5 to
9f0c9c4
Compare
7c77512 to
a30737b
Compare
a30737b to
6832dc0
Compare
6832dc0 to
bf70753
Compare
dfb6602 to
dd8730c
Compare
deuszx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you compare binary sizes?
dd8730c to
766c4cd
Compare
766c4cd to
6e92379
Compare
2b5ccd2 to
da54d77
Compare
a28cb7b to
f91b05d
Compare
da54d77 to
c08e648
Compare
c08e648 to
9fa3039
Compare
f91b05d to
2edac28
Compare
|
What I'm saying is that one could very well define "trace" as the logs that you will never use in production. Perhaps because they are too slow, or perhaps for security/privacy reasons. Then, "debug" would be the logs you usually don't activate in production, but you could do so for debugging. Etc. |
It's impossible to tell in advance what logs will definitely never be needed to debug an issue that may arise in production. If we know for sure that a log line will never be needed in production, I'd suggest we just don't write it (or at least never commit it to
Unfortunately that leaves us in a very awkward place with respect to |
|
I am of an opinion that TRACE is for logs that are very spammy and give full coverage of the flows. Rarely turned on on production deployments due to the amount of logs produced. Fortunately, log levels can be set selectively on the per-module base as well. So we could say: |
## Motivation We currently compile out trace logs, even though the overhead is minimal (it's 2 CPU instructions https://www.reddit.com/r/rust/comments/x9nypb/comment/inutkiv/) ## Proposal Stop compiling it out, so we can have `trace` logs if we want for debugging with just a restart, without having to recompile the binary. ## Test Plan I'm benchmarking networks with this, saw no visible performance regression ## Release Plan - Nothing to do / These changes follow the usual release cycle.
## Motivation We currently compile out trace logs, even though the overhead is minimal (it's 2 CPU instructions https://www.reddit.com/r/rust/comments/x9nypb/comment/inutkiv/) ## Proposal Stop compiling it out, so we can have `trace` logs if we want for debugging with just a restart, without having to recompile the binary. ## Test Plan I'm benchmarking networks with this, saw no visible performance regression ## Release Plan - Nothing to do / These changes follow the usual release cycle.
## Motivation Backport a few PRs: - **Make sending traces to Tempo less confusing (#4771)** - **Add otlp_exporter_endpoint option to proxy/server as well (#4829)** - **Stop using init and entrypoint scripts (#4830)** - **Use release_max_level_trace instead (#4554)** - **Make all heap profile logs trace (#4845)** - **exporter: Add retry logging to indexer connection (#4846)** - **Fix notification forwarding to avoid duplicate messages and handle lag (#4848)** - **Fix a few explorer frontend bugs (#4849)** - **Add support for exporter/indexer/explorer stack deployment (#4850)** - **Stop getting service monitor CRD from GitHub (#4855)** - **Fix small bug on exporter config (#4870)** - **Make sure that the Scylla config ConfigMap exists when Scylla gets created (#4871)** - **Remove UNIQUE constraints – those should be tracked by the node anyway (#4852)** ## Proposal Backport ## Test Plan CI --------- Co-authored-by: deuszx <[email protected]>

Motivation
We currently compile out trace logs, even though the overhead is minimal (it's 2 CPU instructions https://www.reddit.com/r/rust/comments/x9nypb/comment/inutkiv/)
Proposal
Stop compiling it out, so we can have
tracelogs if we want for debugging with just a restart, without having to recompile the binary.Test Plan
I'm benchmarking networks with this, saw no visible performance regression
Release Plan