这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@aeyakovenko
Copy link
Member

Problem

Datapoints are submitted into the metrics queue regardless of what log level is enabled.

Summary of Changes

Don't submit datapoints unless log level is enabled.

Fixes #

@aeyakovenko aeyakovenko requested a review from mvines February 14, 2020 04:31
mvines
mvines previously requested changes Feb 14, 2020
Copy link
Contributor

@mvines mvines left a comment

Choose a reason for hiding this comment

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

We previously had coupled datapoint levels to log levels like this, and decoupled because we wanted to allow the metrics databoard-based on debug/trace datapoints s to continue to function while not spamming the log with their values. I don't have a strong opinion on this but I believe @pgarg66 and @sagar-solana did.

Also it seems like when Sagar's work to fix up metrics.rs's run() comes in then this PR won't matter

@aeyakovenko
Copy link
Member Author

aeyakovenko commented Feb 14, 2020

Also it seems like when Sagar's work to fix up metrics.rs's run() comes in then this PR won't matter

that wont prevent the constructors from running prior to run. If you want the data, it should be info and produced no more than once per slot. or use a counter which emit once per 1k samples.

@codecov
Copy link

codecov bot commented Feb 14, 2020

Codecov Report

Merging #8272 into master will decrease coverage by <.1%.
The diff coverage is 33.3%.

@@           Coverage Diff            @@
##           master   #8272     +/-   ##
========================================
- Coverage    80.5%   80.5%   -0.1%     
========================================
  Files         254     254             
  Lines       55350   55350             
========================================
- Hits        44607   44605      -2     
- Misses      10743   10745      +2

@mergify mergify bot dismissed mvines’s stale review February 14, 2020 16:55

Pull request has been modified.

@mvines mvines added the v0.23 label Feb 14, 2020
@mvines mvines added the v0.22 label Feb 14, 2020
mvines
mvines previously approved these changes Feb 14, 2020
@mergify mergify bot dismissed mvines’s stale review February 14, 2020 17:42

Pull request has been modified.

@aeyakovenko aeyakovenko added the automerge Merge this Pull Request automatically once CI passes label Feb 14, 2020
@solana-grimes solana-grimes merged commit 17fb825 into solana-labs:master Feb 14, 2020
mergify bot pushed a commit that referenced this pull request Feb 14, 2020
automerge

(cherry picked from commit 17fb825)

# Conflicts:
#	core/src/cluster_info.rs
#	ledger/src/blockstore_processor.rs
mergify bot pushed a commit that referenced this pull request Feb 14, 2020
mvines pushed a commit that referenced this pull request Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants