holepunchto / hypercore

Hypercore is a secure, distributed append-only log.
https://docs.holepunch.to
MIT License
2.59k stars 182 forks source link

Trace _requestRangBlock and _send start #491

Closed HDegroote closed 8 months ago

HDegroote commented 8 months ago

Note: _send already has some tracing at the end: https://github.com/holepunchto/hypercore/blob/64116ee4aa66379168b706acb976dd54e1f93f4f/lib/replicator.js#L1211 But there are some early-return flows, so I think it makes sense to trace the beginning too

HDegroote commented 8 months ago

These would serve more for measuring performance rather than tracing, and involve private methods which can be refactored at any time, so I'll close this