- Python 3.8+
- Google Cloud project
- Cloud Trace needs to be enabled
- Download OpenTelemetry Collector (contrib) for your environment and extract the binary into
otelcoldirectory- eg.
otelcol-contrib_0.95.0_darwin_arm64.tar.gzfor macOS
- eg.
- Run
install-requirements.sh- This will create venv and install requirements to the venv
- Run
run-auto-instrumentation.sh - Run
otelcol/otelcol-contrib --config=config.yamlin another shell - Access to the demo app at
http://localhost:8080/roll_dice- eg.
curl -X GET http://localhost:8080/roll_dice
- eg.