apolloFER / dd-trace-py

Datadog Tracing Python Client

Home Page:http://pypi.datadoghq.com/trace/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dd-trace-py

CircleCI

For API docs see http://pypi.datadoghq.com/trace/docs/

Versions

Tracing client libraries will follow semver. While we are less than version 1.0, we'll increment the minor version number for backwards incompatible and significant changes. We'll increment the bugfix version for other changes.

This library is in beta so please pin your version numbers and do phased rollouts.

changelog

Development

Testing

The test suite requires many backing services (PostgreSQL, MySQL, Redis, ...) and we're using docker and docker-compose to start the service in the CI and in the developer machine. To launch properly the test matrix, please install docker and docker-compose using the instructions provided by your platform.

The test suite requires also tox to be ran. You can install it with:

$ pip install tox

You can launch the test matrix using the following rake command:

$ rake test

Or launch single tests manually:

$ docker-compose up -d
$ tox -e '{py36}-redis{210}'

Continuous Integration

We rely on CircleCI 2.0 for our tests. If you want to test how the CI behaves locally, you can use the CircleCI Command Line Interface as described here: https://circleci.com/docs/2.0/local-jobs/

After installing the circleci CLI, simply:

$ circleci build --job django

Benchmarks

When two or more approaches must be compared, please write a benchmark in the tests/benchmark.py module so that we can keep track of the most efficient algorithm. To run your benchmark, just:

$ python -m tests.benchmark

About

Datadog Tracing Python Client

http://pypi.datadoghq.com/trace/docs/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 99.4%Language:Ruby 0.6%Language:HTML 0.1%Language:Mako 0.0%