Implement plugin type tracking in Metrics