metric middleware to keep track of Praefect op types
adds middleware to measure praefect operation types and emits them to a prometheus metric. This commit also cleans up praefect boilerplate code.
adds middleware to measure praefect operation types and emits them to a prometheus metric. This commit also cleans up praefect boilerplate code.