OpenTelemetry instrumentation for Python modules
Go to file
Alex Boten 2ba6b6c875 update SHA 2021-07-27 19:26:06 -07:00
.github update SHA 2021-07-27 19:26:06 -07:00
_template hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
docs Remove opentelemetry-instrumentation (#595) 2021-07-19 09:19:48 -07:00
exporter/opentelemetry-exporter-datadog hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
instrumentation hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
propagator/opentelemetry-propagator-ot-trace hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
scripts Remove opentelemetry-instrumentation (#595) 2021-07-19 09:19:48 -07:00
sdk-extension/opentelemetry-sdk-extension-aws hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
templates Simplify bootstrap and generate code (#514) 2021-06-01 09:19:09 -07:00
tests/opentelemetry-docker-tests/tests Fix pyodbc cursor error in SQLA instrumentation (#469) 2021-06-07 09:11:37 -07:00
util/opentelemetry-util-http hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
.coveragerc remove reference folder (#326) 2021-02-09 09:54:41 -08:00
.flake8 remove reference folder (#326) 2021-02-09 09:54:41 -08:00
.gitignore Simplify bootstrap and generate code (#514) 2021-06-01 09:19:09 -07:00
.isort.cfg remove reference folder (#326) 2021-02-09 09:54:41 -08:00
.pylintrc Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
.readthedocs.yml update python version for readthedocs (#297) 2021-01-26 09:51:37 -08:00
CHANGELOG.md Release/1.4.0 0.23b0 (#597) 2021-07-19 15:57:58 -07:00
CODEOWNERS update references to main (#306) 2021-01-29 12:09:22 -08:00
CONTRIBUTING.md Update CONTRIBUTING document (#417) 2021-06-25 09:03:15 -07:00
LICENSE Fix error in license files (#521) 2021-05-28 09:16:58 -07: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 Add employer for Diego (#525) 2021-06-01 16:54:51 -07:00
dev-requirements.txt add python 3.9 tests (#466) 2021-04-27 09:09:30 -07:00
docs-requirements.txt Remove opentelemetry-instrumentation (#595) 2021-07-19 09:19:48 -07:00
eachdist.ini hotfix: update version numbers to 0.23b2 2021-07-27 19:23:42 -07:00
gen-requirements.txt Simplify bootstrap and generate code (#514) 2021-06-01 09:19:09 -07:00
pyproject.toml remove reference folder (#326) 2021-02-09 09:54:41 -08:00
pytest.ini Add eachdist and move tox to root folder (#29) 2020-04-09 10:06:59 -07:00
tox.ini Remove opentelemetry-instrumentation (#595) 2021-07-19 09:19:48 -07:00

README.md

<p align="center"> <strong> <a href="https://opentelemetry-python-contrib.readthedocs.io/en/latest/getting-started.html">Getting Started<a/>   •   <a href="https://opentelemetry-python-contrib.readthedocs.io/">API Documentation<a/>   •   <a href="https://github.com/open-telemetry/opentelemetry-python/discussions">Getting In Touch (GitHub Discussions)<a/> </strong> </p> <p align="center"> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/releases"> <img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/open-telemetry/opentelemetry-python-contrib?include_prereleases&style=for-the-badge"> </a> <a href="https://codecov.io/gh/open-telemetry/opentelemetry-python-contrib/branch/main/"> <img alt="Codecov Status" src="https://img.shields.io/codecov/c/github/open-telemetry/opentelemetry-python-contrib?style=for-the-badge"> </a> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/LICENSE"> <img alt="license" src="https://img.shields.io/badge/license-Apache_2.0-green.svg?style=for-the-badge"> </a> <br/> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/actions?query=workflow%3ATest+branch%3Amaster"> <img alt="Build Status" src="https://github.com/open-telemetry/opentelemetry-python-contrib/workflows/Test/badge.svg"> </a> <img alt="Beta" src="https://img.shields.io/badge/status-beta-informational?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAX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/sLDXInsctFsXjqIRnO2ZO387lxmIboLDZCJ59KLFliNIgh9ipt6tLg9SihpRPDO1ia5byw7de1aCQmF5geOQtK509rzfdwxaKOIq+73AvwCC5/5fcV4vo3+3LpMdtWHh0ywsJC/ZGoCb8/9D8F/ifgLLl8S8QWfU8cAAAAASUVORK5CYII="> </p> <p align="center"> <strong> <a href="CONTRIBUTING.md">Contributing<a/>   •   <a href="https://opentelemetry-python-contrib.readthedocs.io/en/stable/#examples">Examples<a/> </strong> </p>

Getting Started   •   API Documentation   •   Getting In Touch (GitHub Discussions)

GitHub release (latest by date including pre-releases) Codecov Status license
Build Status Beta

Contributing   •   Examples

OpenTelemetry Python Contrib

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. The passcode is 77777.

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

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!