This example shows how to use Workit to create a simple Node.js application - e.g. a worker that executes a simple task. You will learn how to instrument your application and get traces.
Have fun!
First, start Jaeger with docker
docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 9411:9411 \
jaegertracing/all-in-one:latest
Be sure to have a Camunda platform running. Let's say, you have Camunda BPM (default):
docker run -d --name camunda -p 8080:8080 camunda/camunda-bpm-platform:latest
Then, with your terminal, go to examples/opentelemetry
run:
npm i && npm run build
and in order to deploy your bpmn and create a process instance in Camunda, run:
npm run deploy && npm run create-instance
Finally, run the worker by running the following command:
npm run worker
You can then navigate to http://localhost:16686
to access the Jaeger UI.
You should see something like:
By clicking on a trace, you should see something like:
👏 Congrats, you have finished the tracing section!
related issue: jaegertracing/jaeger-client-node#124 In your terminal, you can do something like:
% sysctl net.inet.udp.maxdgram
net.inet.udp.maxdgram: 9216
% sudo sysctl net.inet.udp.maxdgram=65536
net.inet.udp.maxdgram: 9216 -> 65536
% sysctl net.inet.udp.maxdgram
net.inet.udp.maxdgram: 65536
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on workit, visit: https://villedemontreal.github.io/workit/
MIT