OpenTelemetry instrumentation for Python modules
Go to file
Azfaar Qureshi f6f5b90aeb
Prometheus Remote Write Exporter (6/6) (#227)
* adding README

adding sample app

adding examples readme

fixing lint errors

linting examples

updating readme tls_config example

excluding examples

adding examples to exclude in all linters

adding isort.cfg skip

changing isort to path

ignoring yml only

adding it to excluded directories in pylintrc

only adding exclude to directory

removing readme.rst and adding explicit file names to ignore

adding the rest of the files

adding readme.rst back

adding to ignore glob instead

reverting back to ignore list

converting README.md to README.rst

* addressing readme comments

* adding link to spec for details on aggregators

* updating readme

* adding python-snappy to setup.cfg
2020-12-22 11:06:22 -08:00
.github Only commit benchmark results to master folder (#250) 2020-12-14 14:16:11 -08:00
_template update version to 0.17.dev0 2020-11-25 21:10:39 -08:00
docs/performance Only commit benchmark results to master folder (#250) 2020-12-14 14:16:11 -08:00
exporter Prometheus Remote Write Exporter (6/6) (#227) 2020-12-22 11:06:22 -08:00
instrumentation Fix requests and urllib instrumentations span name callback parameters (#259) 2020-12-16 08:17:23 -08:00
reference Removing reference to ported instrumentation (#44) 2020-09-15 08:28:27 -07:00
scripts copying scripts to prepare release (#211) 2020-11-24 11:13:02 -08:00
sdk-extension/opentelemetry-sdk-extension-aws Add test case for DataDog fields and AWS SDK Extension (#231) 2020-12-11 12:48:01 -08:00
tests/opentelemetry-docker-tests/tests Prometheus Remote Write Exporter (5/6) (#216) 2020-12-09 10:46:31 -08:00
.coveragerc Fix lint by making pkg tests folders namespace pkgs (#131) 2020-11-06 13:11:51 -08:00
.flake8 Setup Prometheus Remote Write Exporter (#180) 2020-11-27 09:58:55 -08:00
.gitignore Update gitignore 2020-11-19 23:43:28 +05:30
.isort.cfg Working on lint tests 2020-11-03 16:41:03 -08:00
.pylintrc Prometheus Remote Write Exporter (6/6) (#227) 2020-12-22 11:06:22 -08:00
CHANGELOG.md Prometheus Remote Write Exporter (6/6) (#227) 2020-12-22 11:06:22 -08:00
CODEOWNERS initial commit 2019-11-15 08:52:03 -08:00
CONTRIBUTING.md Only commit benchmark results to master folder (#250) 2020-12-14 14:16:11 -08:00
LICENSE initial commit 2019-11-15 08:52:03 -08:00
LICENSE.Apache Small cleanup (#27) 2020-04-08 13:17:31 -07:00
LICENSE.BSD3 Small cleanup (#27) 2020-04-08 13:17:31 -07:00
README.md Update README.md (#214) 2020-11-25 07:47:41 -08:00
dev-requirements.txt Update protobuf versions (#1356) (#148) 2020-11-09 22:06:31 -08:00
eachdist.ini Working on lint tests 2020-11-03 16:41:03 -08:00
pyproject.toml Setup Prometheus Remote Write Exporter (#180) 2020-11-27 09:58:55 -08:00
pytest.ini Add eachdist and move tox to root folder (#29) 2020-04-09 10:06:59 -07:00
tox.ini Prometheus Remote Write Exporter (6/6) (#227) 2020-12-22 11:06:22 -08:00

README.md

opentelemetry-python-contrib

Gitter chatBuild status

The Python auto-instrumentation libraries for OpenTelemetry (per OTEP 0001)

Installation

This repository includes installable packages for each instrumented library. Libraries that produce telemetry data should only depend on opentelemetry-api, and defer the choice of the SDK to the application developer. Applications may depend on opentelemetry-sdk or another package that implements the API.

Please note that these libraries are currently in beta, and shouldn't generally be used in production environments.

The instrumentation/ directory includes OpenTelemetry instrumentation packages, which can be installed separately as:

pip install opentelemetry-instrumentation-{integration}

To install the development versions of these packages instead, clone or fork this repo and do an editable install:

pip install -e ./instrumentation/opentelemetry-instrumentation-{integration}

Contributing

See CONTRIBUTING.md

We meet weekly on Thursday, and the time of the meeting alternates between 9AM PT and 4PM PT. The meeting is subject to change depending on contributors' availability. Check the OpenTelemetry community calendar for specific dates.

Meetings take place via Zoom video conference.

Meeting notes are available as a public Google doc. For edit access, get in touch on Gitter.

Approvers (@open-telemetry/python-approvers):

Find more about the approver role in community repository.

Maintainers (@open-telemetry/python-maintainers):

Find more about the maintainer role in community repository.

Running Tests Locally

  1. Go to your Contrib repo directory. cd ~/git/opentelemetry-python-contrib.
  2. Create a virtual env in your Contrib repo directory. python3 -m venv my_test_venv.
  3. Activate your virtual env. source my_test_venv/bin/activate.
  4. Clone the OpenTelemetry Python Python Core repo to a folder named opentelemetry-python-core. git clone git@github.com:open-telemetry/opentelemetry-python.git opentelemetry-python-core.
  5. Change directory to the repo that was just cloned. cd opentelemetry-python-core.
  6. Move the head of this repo to the hash you want your tests to use. This is currently the SHA 47483865854c7adae7455f8441dab7f814f4ce2a as seen in .github/workflows/test.yml. Use git fetch && git checkout 47483865854c7adae7455f8441dab7f814f4ce2a.
  7. Go back to the root directory. cd ../.
  8. Make sure you have tox installed. pip install tox.
  9. Run tests for a package. (e.g. tox -e test-instrumentation-flask.)

Thanks to all the people who already contributed!