celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

metrics(share/p2p): distributed tracing for shrex

Open walldiss opened this issue 2 years ago • 1 comments

Implementation ideas

Span info could be transferred over wire allowing to track results of individual traces across distributed network. It is very powerful tool for monitoring and debugging distributed system and we can utilise it in node. In order for this feature to work, tracing exporting should happen from both client and server and to be collected to the same jaeger.

Implementation idea
Add option to support distributed tracing on both client and server.

  • If option is enabled on client side:
    • client should append additional optional tracing info to the request
  • If option is enabled on server side :
    • server should extract tracing info
    • enrich it with local attributes (node type, peerID etc...)
    • use it for internal calls
    • export tracing info to jaeger.

walldiss avatar Aug 15 '23 06:08 walldiss

this might be relevant and useful as we probe and crawl the p2p network

ramin avatar Feb 29 '24 12:02 ramin