diff --git a/changes/2024-05-30T150129-0400.txt b/changes/2024-05-30T150129-0400.txt new file mode 100644 index 0000000000..1401f47f7d --- /dev/null +++ b/changes/2024-05-30T150129-0400.txt @@ -0,0 +1 @@ +Add a logging backend for P2P stats so they aren't logged as text diff --git a/node/ChainwebNode.hs b/node/ChainwebNode.hs index 909c8db449..b07e4296eb 100644 --- a/node/ChainwebNode.hs +++ b/node/ChainwebNode.hs @@ -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 @@ -445,6 +447,7 @@ withNodeLogger logCfg chainwebCfg v f = runManaged $ do , logHandler dbCacheBackend , logHandler dbStatsBackend , logHandler pactQueueStatsBackend + , logHandler p2pNodeStatsBackend , logHandler topLevelStatusBackend ] baseBackend