Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

rq

This directory contains examples for the rq library

Install/Setup

These examples use an instance of redis that can up started using the following command:

$ docker-compose up -d

To install the Python dependencies into virtual environment:

$ virtualenv --python=python3 .venv/
$ source .venv/bin/activate
$ pip install -r requirements.txt

Note: 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 worker

Then start the app with:

$ DD_SERVICE=app ddtrace-run python app.py