This directory contains examples for the rq library
These examples use an instance of redis that can up started using the following command:
$ docker-compose up -dTo install the Python dependencies into virtual environment:
$ virtualenv --python=python3 .venv/
$ source .venv/bin/activate
$ pip install -r requirements.txtNote: you must have an agent running on your machine that will collect the traces created by the tracer! See https://docs.datadoghq.com/agent/ for more information about the agent. Make sure you install the trace agent!
In a separate shell start the rq worker:
$ DD_SERVICE=worker ddtrace-run rq workerThen start the app with:
$ DD_SERVICE=app ddtrace-run python app.py