feat: enhance event filtering and monitoring system

- Add EventTypeFilter for precise event type filtering
- Refactor metrics to track events by type (tx/account/block)
- Add parser caching for improved performance
- Enhance gRPC subscription management
- Update examples and type definitions
This commit is contained in:
ysq
2025-08-16 14:48:51 +08:00
parent 89f4a85a11
commit ea7ecd1d0c
15 changed files with 477 additions and 131 deletions
+5 -2
View File
@@ -45,9 +45,12 @@ impl YellowstoneGrpc {
account_include,
account_exclude,
addrs,
None,
);
let (mut subscribe_tx, mut stream) =
self.subscription_manager.subscribe_with_request(transactions, None, None).await?;
let (mut subscribe_tx, mut stream) = self
.subscription_manager
.subscribe_with_request(transactions, None, None, None)
.await?;
let (mut tx, mut rx) = mpsc::channel::<EventPretty>(CHANNEL_SIZE);
let callback = Box::new(callback);