Skip to content

Commit

Permalink
Merge #2178
Browse files Browse the repository at this point in the history
2178: Network tracers r=coot a=coot

This PR improves network tracers; originally done in `coot/p2p-integration` branch,
but this part is indepentend of p2p changes in `ouroboros-network`.  This PR consists of two patches:

- Improved mini-protocol tracers
  Which includes agency together with the mini-protocol message tag.

- networking trace using show instances rather than json values


Co-authored-by: Marcin Szamotulski <profunctor@pm.me>
  • Loading branch information
iohk-bors[bot] and coot committed Dec 11, 2020
2 parents 3dc372c + 49942cf commit c0176f7
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 94 deletions.
4 changes: 4 additions & 0 deletions cardano-node/src/Cardano/Tracing/Constraints.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module Cardano.Tracing.Constraints
( TraceConstraints
) where

import Prelude (Show)

import Data.Aeson

import Cardano.BM.Tracing (ToObject)
Expand Down Expand Up @@ -38,4 +40,6 @@ type TraceConstraints blk =
, ToObject (ValidationErr (BlockProtocol blk))
, ToObject (CannotForge blk)
, ToObject (ForgeStateUpdateError blk)
, Show blk
, Show (Header blk)
)

0 comments on commit c0176f7

Please sign in to comment.