Skip to content

Add metrics instrumentation after data sync and persistence are implemented #31

Description

@coderabbitai

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

  • Identify and instrument key operations in the peer-session layer (relay startup, node startup, peer discovery, messaging)
  • Add metrics coverage for data sync operations once implemented
  • Add initMetrics / shutdownMetrics hooks to the integration test suite (packages/peer-session/tests/transport-libp2p/integration.test.ts)
  • Ensure all instrumented components bind to a real MeterProvider rather than the no-op meter

References

/cc @jost-s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions