function buildMiddlewareSpecForMiddlewareFunction(shim, name, route) {
  return new MiddlewareSpec({
    name,
    route,
    next: shim.LAST,
    params: getParamsFromFastifyRequest,
    req: getRequestFromFastify,
    type: shim.MIDDLEWARE
  })
}
Spec for all Fastify middleware(excluding route handlers)

@param {WebFrameworkShim} shim
@param {string} name metric name for middleware being executed
@param route
@returns {object} spec for Fastify middleware