Currently, the enabled collectors for a system lives in a static list called PLATFORM in main.rs. This is probably not the best way to gather which collectors should be run, as it would require recompilation to configure which collectors should be run.
There likely should be some kind of hybrid solution: a compile-time method to gather all the collectors available for the target arch this is compiled for (that is, perhaps an automatic way that would not require maintaining a list), and then also a run-time method to filter appropriate collectors.
Currently, the enabled collectors for a system lives in a static list called
PLATFORM
inmain.rs
. This is probably not the best way to gather which collectors should be run, as it would require recompilation to configure which collectors should be run.There likely should be some kind of hybrid solution: a compile-time method to gather all the collectors available for the target arch this is compiled for (that is, perhaps an automatic way that would not require maintaining a list), and then also a run-time method to filter appropriate collectors.