Skip to content
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

util/tracing: change the default of trace.debug.enable to false #41497

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

andreimatei
Copy link
Contributor

Before this patch, we weirdly defaulted that setting to true and then
had a migration setting it to false. The reason for this dance was to
trace the node startup (or the cluster bootstrap?) (i.e. the
debug/requests web page would show one trace for the cluster bootstrap
always). Cute, but I doubt this has been useful recently and is too
magic. It also has unintended consequences, as global variables do.
Tests and benchmarks that don't start a server end up running with this
sort of tracing enabled, which has effects for logging and other things.
In particular, I have another change where the size of Raft proposal
messages changes some when tracing is enabled. And so, I'd like to get
rid of the magic.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

:lgtm_strong: unless @tbg has any reservations.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @tbg)

@tbg
Copy link
Member

tbg commented Oct 12, 2019 via email

@andreimatei andreimatei force-pushed the tracing.default-net-trace branch 2 times, most recently from abe4f4a to 3e8aa28 Compare October 18, 2019 15:56
Before this patch, we weirdly defaulted that setting to true and then
had a migration setting it to false. The reason for this dance was to
trace the node startup (or the cluster bootstrap?) (i.e. the
debug/requests web page would show one trace for the cluster bootstrap
always). Cute, but I doubt this has been useful recently and is too
magic. It also has unintended consequences, as global variables do.
Tests and benchmarks that don't start a server end up running with this
sort of tracing enabled, which has effects for logging and other things.
In particular, I have another change where the size of Raft proposal
messages changes some when tracing is enabled. And so, I'd like to get
rid of the magic.

Release note: None
Copy link
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten and @tbg)

craig bot pushed a commit that referenced this pull request Oct 21, 2019
41497: util/tracing: change the default of trace.debug.enable to false r=andreimatei a=andreimatei

Before this patch, we weirdly defaulted that setting to true and then
had a migration setting it to false. The reason for this dance was to
trace the node startup (or the cluster bootstrap?) (i.e. the
debug/requests web page would show one trace for the cluster bootstrap
always). Cute, but I doubt this has been useful recently and is too
magic. It also has unintended consequences, as global variables do.
Tests and benchmarks that don't start a server end up running with this
sort of tracing enabled, which has effects for logging and other things.
In particular, I have another change where the size of Raft proposal
messages changes some when tracing is enabled. And so, I'd like to get
rid of the magic.

Release note: None

41725: pkg: fix formatting for some span tag stats r=andreimatei a=andreimatei

They were formatted as bytes.

Release note: None

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Oct 21, 2019

Build succeeded

@craig craig bot merged commit 51a326f into cockroachdb:master Oct 21, 2019
@andreimatei andreimatei deleted the tracing.default-net-trace branch October 22, 2019 17:34
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.

4 participants