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

refactor(iroh-net): Always attach tracing spans to spawned tasks #1299

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

flub
Copy link
Contributor

@flub flub commented Jul 26, 2023

Description

This is another commit that keeps fine-tuning our logging.

  • Most importantly this consistently attaches spans when tasks are
    spawned. This threads togehther a lot more context.

  • As a general rule spawned tasks get info_span!(), otther spans get
    debug_span!()

  • protmapper report is logged on info in reportgen now, just as the
    other sub-reports.

  • MagicSock::poll_recv logs number of datagrams on trace now instead
    of info. This is expected to be a lot. A new metric is added to
    keep track of this as well.

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

Copy link
Contributor

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

very nice

This is another commit that keeps fine-tuning our logging.

- Most importantly this consistently attaches spans when tasks are
  spawned.  This threads togehther a lot more context.

- As a general rule spawned tasks get info_span!(), otther spans get
  debug_span!()

- protmapper report is logged on info in reportgen now, just as the
  other sub-reports.

- MagicSock::poll_recv logs number of datagrams on trace now instead
  of info.  This is expected to be a lot.  A new metric is added to
  keep track of this as well.
@flub flub force-pushed the flub/logging-spawn-spans branch from 630b53b to 4b3cd23 Compare July 26, 2023 11:46
@flub flub enabled auto-merge July 26, 2023 11:47
Copy link
Collaborator

@Arqu Arqu left a comment

Choose a reason for hiding this comment

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

Since we're starting to commit to it, I like it. I'll take a look on how to pick up these logs and digest on the infra side.

@flub flub added this pull request to the merge queue Jul 26, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 26, 2023
@flub flub added this pull request to the merge queue Jul 26, 2023
Merged via the queue into main with commit 73cac23 Jul 26, 2023
@flub flub deleted the flub/logging-spawn-spans branch July 26, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants