Use custom instrumentation middleware for metrics