-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection/event plugin type #6827
Comments
We can use this to create a plugin that collects network stats. |
Worth documenting a bit more where someone would start with something like this (in case the person is a bit new to the plugin/stat-collecting system). Pointers to modules, other plugins and stat-collectors would be nice. |
Good point.
Technically, we don't even need a new plugin type: we can just use the internal plugin type. However, a new event plugin type would still be a nice addition. The plugin itself will likely implement two interfaces:
|
This would be of great help for us at ipfs-search.com - we'd love to be able to index IPNS - but it seems there is currently no infrastructure to get that data out. Hence, it would be great if that (perhaps) could be included as events. |
@dokterbob there's now an "internal" plugin (disabled by default) in master that logs peer IDs using zap. You can build with it enabled by running Once we completely switch over to zap, it should be possible to turn on specific logging sub-systems and, e.g., log dht queries (which should get you content & ipns requests). |
We need a plugin type that can respond to (libp2p) events (disconnect, connect, etc.).
The text was updated successfully, but these errors were encountered: