This project consists of two Flask servers and one Express server instrumented with Opentelemetry on a standalone host. (This is not using k8s or containers)
There are a few required steps to get this example working.
- Install and set up the OpenTelemetry Collector on the host of your choice. https://opentelemetry.io/docs/collector/installation/
- Set up the Collector configuration. An example collector configuration can be found at Config File.
- The config.yml is set up to send traces and metrics from OTLP Collector to the Datadog Exporter.
- Update the DATADOG_API_KEY as well.
- Run this collector ~
./otelcol-contrib --config=config.yml
- Once the collector is up and running. Set up the 3 servers. (Can be found in each of the servers README)
- Update DATADOG_API_KEY in Config File.
- Run docker-compose up
To trigger the service call
curl -X POST http://localhost:5002/play_game \
-H "Content-Type: application/json" \
-d '{"player": "John Doe"}'
curl -X POST http://localhost:5002/play_game \
-H "Content-Type: application/json" \
-d '{}'
View traces & standalone host in app.datadoghq.com