4. Bugzappers
Bug 1: Play and Game and Clear the Scores#
There are a few bugs in the Bugzapper app and your mission is to find them by investaging the application and using Dynatrace to help your investigation.
Open the bugzappers game in your browser (if its not open, go to the codespaces 'Ports' tab and open the app on port 30200 in your browser)
To start, play a game to make sure there are some top scores on the scoreboard:
Hints
- Try to clear the scores from the Top Scores. What do you notice?
- Try to use the Distributed Tracing App to understand which API calls are being made. Filter on the
asteroids-game
service. Press 'ctrl/cmd + K' in Dynatrace and type 'Distributed Tracing' to find the app.
- Use the Live Debugger to set a breakpoint in the part of the code that's responsible for clearing the scores. Press 'ctrl/cmd + K' in Dynatrace and type 'Live Debugger' to find the app. Click the purple pencil icon to set a Live Debugger filter. Use the
bugzapper
namespace as the filter. The source code repository should populate automatically.
Bug 2: View Past Game Stats#
Now that you've played a game, you can view your game stats by clicking on the View Game Stats
button.
Now click on Past Game Stats
to view the past game stats. What do you notice?
Hints
- Try to use the Distributed Tracing App to understand which API calls are being made. Filter on the
asteroids-game
service. - Go to the Asteroids Game service in the
Services
app and check out the Logs. Notice there are some failures. Press 'ctrl/cmd + K' in Dynatrace and type 'Services' to find the app - Based on the error logs, use the Live Debugger to set a breakpoint in the part of the code that is responsible for storing the game stats when a game ends.
Did you find the bugs? Great job. Let's move on to the next app.