Skip to content

Conversation

@coot
Copy link
Contributor

@coot coot commented Dec 4, 2025

Description

Make the new tracing system behave more like the old one:

  • tracing: block-fetch
  • tracing: connection manager
  • tracing: refactored P2P module

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@coot coot requested a review from a team as a code owner December 4, 2025 12:23
@coot coot requested review from karknu and mgmeier December 4, 2025 12:24
@github-project-automation github-project-automation bot moved this to In Progress in Ouroboros Network Dec 4, 2025
@coot coot self-assigned this Dec 4, 2025
@coot coot force-pushed the coot/new-tracing-system branch from 9f96675 to 0ca2c18 Compare December 4, 2025 14:37
Copy link
Contributor

@jutaro jutaro left a comment

Choose a reason for hiding this comment

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

Just two changes, I will push a commit that fixed these tow issues. Otherwise it looks good to me.

]

instance MetaTrace (FetchDecision [Point header]) where
namespaceFor (Left FetchDeclineChainIntersectionTooDeep)
Copy link
Contributor

Choose a reason for hiding this comment

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

To make this fully functional namespaces needs more, so I propose to do a simple dispatch here on the runtime object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean that each constructor needs to have its own namespace under ["Decline"]?

jutaro added a commit that referenced this pull request Dec 5, 2025
Copy link
Contributor

@jutaro jutaro left a comment

Choose a reason for hiding this comment

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

LGTM
PS: I have not checked if standard configurations have to be adopted

jutaro added a commit that referenced this pull request Dec 5, 2025
coot and others added 5 commits December 11, 2025 10:20
Use the same severities in the new tracing system as in the old one.
* removed unused namespace "ImpossibleConnection"
* set severity of `ConnectionManagerCounters` to `Info` (as in the
  legacy tracing system)
Using type aliases exposed by `cardano-diffusion` package.
@coot coot force-pushed the coot/new-tracing-system branch from c9fb720 to 250b290 Compare December 11, 2025 09:26
@coot
Copy link
Contributor Author

coot commented Dec 11, 2025

I rebased the PR on top of master.

@jutaro jutaro force-pushed the coot/new-tracing-system branch from 2bfa9be to a6a513c Compare December 19, 2025 13:29
@coot coot added this pull request to the merge queue Dec 22, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 22, 2025
new tracing system: networking addjustments
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 22, 2025
@mgmeier mgmeier added this pull request to the merge queue Dec 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 26, 2025
@mgmeier mgmeier added this pull request to the merge queue Dec 26, 2025
Merged via the queue into master with commit 71fa262 Dec 27, 2025
25 checks passed
@mgmeier mgmeier deleted the coot/new-tracing-system branch December 27, 2025 04:10
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ouroboros Network Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants