Skip to content

Commit

Permalink
log: add a telemetry backend for P2P stats
Browse files Browse the repository at this point in the history
Change-Id: I89f8b6dfd1ac32502e27ca4c13bb40b309248f14
  • Loading branch information
edmundnoble committed May 30, 2024
1 parent 440760f commit ef46ae7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/2024-05-30T150129-0400.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a logging backend for P2P stats so they aren't logged as text
3 changes: 3 additions & 0 deletions node/ChainwebNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ withNodeLogger logCfg chainwebCfg v f = runManaged $ do
$ mkTelemetryLogger @DbStats mgr teleLogConfig
pactQueueStatsBackend <- managed
$ mkTelemetryLogger @PactQueueStats mgr teleLogConfig
p2pNodeStatsBackend <- managed
$ mkTelemetryLogger @P2pNodeStats mgr teleLogConfig
topLevelStatusBackend <- managed
$ mkTelemetryLogger @ChainwebStatus mgr teleLogConfig

Expand All @@ -445,6 +447,7 @@ withNodeLogger logCfg chainwebCfg v f = runManaged $ do
, logHandler dbCacheBackend
, logHandler dbStatsBackend
, logHandler pactQueueStatsBackend
, logHandler p2pNodeStatsBackend
, logHandler topLevelStatusBackend
] baseBackend

Expand Down

0 comments on commit ef46ae7

Please sign in to comment.