package octez-libs

  1. Overview
  2. Docs

Introspection and stats facilities

type stats = private {
  1. mutable count_topics : int64;
    (*

    Counts the number of topics of the node. It's the diff between Join and Leave topics events.

    *)
  2. mutable count_connections : int64;
    (*

    Counts the number of connections of the node. It's the diff between New_connection and Disconnection events.

    *)
  3. mutable count_bootstrap_connections : int64;
    (*

    Counts the number of connections of the node to bootstrap peers. It's a refinement of count_connections for when the remote peer declares itself as a bootstrap peer.

    *)
  4. mutable count_sent_app_messages : int64;
    (*

    Count sent app messages.

    *)
  5. mutable count_sent_grafts : int64;
    (*

    Count sent grafts.

    *)
  6. mutable count_sent_prunes : int64;
    (*

    Count sent prunes.

    *)
  7. mutable count_sent_ihaves : int64;
    (*

    Count sent ihaves.

    *)
  8. mutable count_sent_iwants : int64;
    (*

    Count sent iwants.

    *)
  9. mutable count_recv_valid_app_messages : int64;
    (*

    Count received app messages that are known to be valid.

    *)
  10. mutable count_recv_invalid_app_messages : int64;
    (*

    Count received app messages that are known to be invalid.

    *)
  11. mutable count_recv_unknown_validity_app_messages : int64;
    (*

    Count received app messages we won't validate.

    *)
  12. mutable count_recv_grafts : int64;
    (*

    Count successfully received & processed grafts.

    *)
  13. mutable count_recv_prunes : int64;
    (*

    Count successfully received & processed prunes.

    *)
  14. mutable count_recv_ihaves : int64;
    (*

    Count successfully received & processed ihaves.

    *)
  15. mutable count_recv_iwants : int64;
    (*

    Count successfully received & processed iwants.

    *)
}

A record containing some stats about what happened in the Gossipsub worker.

val empty_stats : unit -> stats
OCaml

Innovation. Community. Security.