The present repository aims to showcase a problem caused when trying to manually instrument a trace split by an async/await block. Please refer to the App component to check the implementation out.
- Node (Optional)
- 🐳 Docker
- Install dependencies:
npm install
- Run dev server
npm run dev
-
Open the web server
-
Click the Test button in the UI
Note: The node version runs the code in development mode Note: The node version outputs the spans to the console.
- Check the console to make sure that the parentIds are not properly set
- Start the cluster
make start
-
Open the web server
-
Click the Test button in the UI
-
Check the trace
Visit Jaeger to debug the trace
You should see the trace disconnected in Jaeger
Note: The docker version runs the code in production, using an nginx to serve the static files and act as a proxy before the otel collector. Doing that, we avoid CORS-related issues. Note: The docker version outputs the spans to Jaeger.