Start with a sample project with Docker Compose
Last updated
Last updated
Clone our repository and open it in a new VS Code window
Install the project with the following:
Let's apply some code changes to the repository code to understand better how sprkl works.
Sprkl is built on the idea of analyzing code changes and integrating instrumentation of the scanned changes into the runtime. Once we apply the following code changes, we will get an insightful view of how these code changes play in our application.
In the file, metrics/metrics.js
uncomment the following code block (starting at line 41).
Note that this code has some inefficiencies that will show up in the Sprkl dashboard
Add the following code to file orders/index.js
line 35:
Let's deploy the microservices with docker-compose using the following command:
Now that the deployment was successful let's run our end-2-end testing:
For more information about the recipe flag, read Analysis.
Open the Sprkl dashboard by clicking on the Sprkl icon from the main menu.
Check the “insights” section to see the inefficiencies the code contains.