You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To implement the segregated metrics for each server we need to create one event listeners and metrics repository for each service. That means the stats setup function will not work anymore. For example, the stats setup function for the HTTP core is
It creates the channel and subscriber one event listener. we need to separate the channel creation from the listeners subscriptions. My plan is to:
Move the event enums, sender trait and channel creation to a new "pure" events module.
Leave the listener subscription in the statistics module.
The new events are "generic" events that can be used for any purpose, not only generating stats.
This will allow later to create one listener and repo per server (socket address).
In this issue, I'm going to only split the modules internally, the statistics::setup::factory(...) function signature will be the same. We can removed it when we introduce the new listeners.
Activity
docs: [torrust#1395] minor changes in comments
refactor: [torrust#1395] rename send_stats_event to send_event
Merge #1400: Overhaul stats: decouple events from stats