This is a demo app, don't run it in production.
This contains a sample application for use in Honeycomb Academy lab activities. This app has 4 services.
It generates images by combining a randomly chosen picture with a randomly chosen phrase.
Hello! Welcome to the Instrumenting with Node.js course lab.
- Take a look at this app. The
backend-for-frontend
service needs to be instrumented. - Before you can do that, you need to run this app.
- Then, connect this app to Honeycomb.
- See what the traces look like.
- Improve the traces.
To run this app, you can use GitPod or Codespaces. Note that Gitpod and Codespaces are free up to a certain number of hours per month.
Once you run the application, you can send traces to Honeycomb. Then you can practice improving the instrumentation for better observability.
Open the repository on GitHub. Open the <> Code
dropdown down menu.
Select the Codespaces
tab. Create a codespace on main.
Go to Gitpod to open the repository.
Confirm the workspace creation. You can work in the browser with VS Code Browser or in your local code editor. The default settings are acceptable.
Once you are in the code editor, run docker compose up
in the code editor's terminal. To stop running the application, run ctrl+c
. Then run docker compose down
to remove the container.
You also have the option to run this application locally.
First, clone this repository.
git clone https://github.com/honeycombio/academy-instrumentation-nodejs
Install Docker: https://docs.docker.com/get-docker/
./run
(This will run docker compose
in daemon mode, and build containers.)
Access the app:
After making changes to a service, you can tell it to rebuild just that one:
./run [ meminator | backend-for-frontend | image-picker | phrase-picker ]
Visit http://localhost:10114
Click the "GO" button. Then wait.
./stop