Skip to content

Conversation

@akoptelov
Copy link
Contributor

@akoptelov akoptelov commented Jul 7, 2023

  • Use standard tracing subscriber for console output
  • Specify monotonic time for trace events

Issue #44

@akoptelov akoptelov assigned akoptelov and unassigned akoptelov Jul 7, 2023
@binier binier force-pushed the feat/standalone_snark_worker branch 5 times, most recently from 7cfa9cf to 9e7483c Compare July 10, 2023 06:11
@akoptelov akoptelov force-pushed the feat/tracing branch 2 times, most recently from e9297ed to fe95d99 Compare July 10, 2023 10:30
@akoptelov akoptelov marked this pull request as ready for review July 10, 2023 10:30
@akoptelov akoptelov requested a review from binier July 10, 2023 10:30
@akoptelov
Copy link
Contributor Author

@binier I've also added submodules, now it is easier to just modify our dependencies right in the project tree.

@binier binier force-pushed the feat/standalone_snark_worker branch 2 times, most recently from 75fa1f2 to dda22c7 Compare July 10, 2023 11:06
Copy link
Contributor

@binier binier left a comment

Choose a reason for hiding this comment

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

Looks good. We just need to revert extra changes caused by force push.

// // .module(module_path!()) // remove this line to see libp2p logs.
// .init()
// .unwrap();
unsafe { backtrace_on_stack_overflow::enable() };
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need this anymore.

pub type ArcBlockWithHash = BlockWithHash<Arc<Block>>;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Serialize, Deserialize, Clone)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Tmp changes that were in original branch, We should undo changes in this file.

rpc_sender_clone.oneshot_request(RpcRequest::GetState).await;

with_json_reply(&result, StatusCode::OK)
let result = result.map(|v| v.transition_frontier.sync);
Copy link
Contributor

Choose a reason for hiding this comment

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

Tmp change, needs to be removed.

if matches!(result_kind, RpcResultKind::Err) {
let err = mina_p2p_messages::rpc_kernel::Error::binprot_read(r)?;
let err = format!("{:?}", err);
let err = dbg!(format!("{:?}", err));
Copy link
Contributor

Choose a reason for hiding this comment

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

Tmp change, needs to be removed.

block: ArcBlockWithHash,
pred_block: ArcBlockWithHash,
) -> Result<(), String> {
eprintln!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Tmp change, needs to be removed.

@akoptelov akoptelov requested a review from binier July 10, 2023 14:38
Copy link
Contributor

@binier binier left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

@akoptelov akoptelov merged commit 28bb4d8 into feat/standalone_snark_worker Jul 10, 2023
@akoptelov akoptelov deleted the feat/tracing branch July 10, 2023 15:25
sebastiencs pushed a commit that referenced this pull request Oct 13, 2023
Tracing console output with proper monotonic time
binier added a commit that referenced this pull request May 14, 2024
binier added a commit that referenced this pull request May 14, 2024
@binier binier mentioned this pull request May 14, 2024
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.

3 participants