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

Trace context for the following actors: #7819

Merged
merged 32 commits into from
Oct 18, 2022
Merged

Conversation

nikurt
Copy link
Contributor

@nikurt nikurt commented Oct 13, 2022

  • ClientActor
  • ViewClientActor
  • TelemetryActor

Tested by running a mainnet node with this PR.

This PR enriches the tracing information. With this change we can see which context generated the actix messages processed by ClientActor and ViewClientActor.
https://pagodaplatform.atlassian.net/browse/ND-171

@nikurt nikurt marked this pull request as ready for review October 14, 2022 11:12
@nikurt nikurt requested a review from a team as a code owner October 14, 2022 11:12
@nikurt nikurt requested review from mzhangmzz and nagisa and removed request for mzhangmzz October 14, 2022 11:12
chain/client/src/client_actor.rs Outdated Show resolved Hide resolved
chain/client/src/tests/bug_repros.rs Outdated Show resolved Hide resolved
chain/client/src/tests/catching_up.rs Outdated Show resolved Hide resolved
chain/client/src/view_client.rs Outdated Show resolved Hide resolved
nikurt and others added 14 commits October 17, 2022 16:26
Co-authored-by: Akhilesh Singhania <akhi3030@gmail.com>
Previously, if neard wasn’t configured to run as an archival node
(i.e. `archive` setting in `config.json` was false) but the database
was an archive, the node would fail.  Change this behaviour so that it
warns and continues running as archival node.

The grand plan is to get rid of the `archive` setting and have type of
the node be determined by the database.  This will reduce number of
special cases to be handled when opening a database.
…precated node_key (#7828)

Currently, response to the /status request returns a `node_key`
field. However, the field does not include node key but rather
validator key.  Deprecated it in favour of two new fields:
`node_public_key` and `validator_public_key`.

Fixes: #7672
Replace RuntimeAdapter::get_store with RuntimeAdapter::store method
which returns reference to a Store rather than cloning it.  This
avoids some instances where the Store is cloned unnecessarily.
* ClientActor
* ViewClientActor
* TelemetryActor
@nikurt nikurt requested a review from nagisa October 17, 2022 15:00
chain/network/src/peer/peer_actor.rs Outdated Show resolved Hide resolved
chain/client/src/client_actor.rs Outdated Show resolved Hide resolved
chain/client/src/client_actor.rs Outdated Show resolved Hide resolved
chain/client/src/tests/bug_repros.rs Outdated Show resolved Hide resolved
@nagisa
Copy link
Collaborator

nagisa commented Oct 18, 2022

This is looking pretty clean so far! I love when the code becomes clearer as a result of adding functionality ^^

@nikurt nikurt requested a review from nagisa October 18, 2022 13:14
Copy link
Collaborator

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

Overall LGTM, last two remaining nits, feel free to not fix them right now if my nits are getting annoying ^^

core/o11y/src/macros.rs Outdated Show resolved Hide resolved
core/o11y/src/macros.rs Outdated Show resolved Hide resolved
@near-bulldozer near-bulldozer bot merged commit 702c25c into master Oct 18, 2022
@near-bulldozer near-bulldozer bot deleted the nikurt-viewca-context branch October 18, 2022 14:17
nikurt added a commit that referenced this pull request Nov 9, 2022
* ClientActor
* ViewClientActor
* TelemetryActor

Tested by running a mainnet node
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.

None yet

6 participants