Overview
Add comprehensive metrics instrumentation to the peer-session layer and related components once data sync and persistence have been implemented.
Context
The peer-session package (introduced in #29) creates TransportLibp2p instances that already wire up createTransportMetrics(), but full metrics integration (e.g. initialising a global MeterProvider via initMetrics) is deferred until the data layer is more stable.
Tasks
References
/cc @jost-s
Overview
Add comprehensive metrics instrumentation to the peer-session layer and related components once data sync and persistence have been implemented.
Context
The
peer-sessionpackage (introduced in #29) createsTransportLibp2pinstances that already wire upcreateTransportMetrics(), but full metrics integration (e.g. initialising a globalMeterProviderviainitMetrics) is deferred until the data layer is more stable.Tasks
initMetrics/shutdownMetricshooks to the integration test suite (packages/peer-session/tests/transport-libp2p/integration.test.ts)MeterProviderrather than the no-op meterReferences
/cc @jost-s