libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
313 stars 179 forks source link

use RawTracer cannot track Bandwidth #493

Open Jackmeng1985 opened 2 years ago

Jackmeng1985 commented 2 years ago

I customized a tracer that inherits RawTracer, then I used BandwidthCounter to count traffic, but the RecvRPC interface of RawTracer cannot access peer ID so it did not work well