|
|
||
|---|---|---|
| .github | ||
| _template | ||
| exporter | ||
| instrumentation | ||
| reference | ||
| scripts | ||
| .coveragerc | ||
| .flake8 | ||
| .gitignore | ||
| .isort.cfg | ||
| .pylintrc | ||
| CODEOWNERS | ||
| LICENSE | ||
| LICENSE.Apache | ||
| LICENSE.BSD3 | ||
| README.md | ||
| dev-requirements.txt | ||
| eachdist.ini | ||
| pyproject.toml | ||
| pytest.ini | ||
| tox.ini | ||
README.md
opentelemetry-auto-instr-python
The auto-instrumentation for Python (per OTEP 0001) instruments each library in a separately installable package to ensure users only need to install the libraries that make sense for their use-case. This repository contains the code initially donated by DataDog in the reference folder. All instrumentation that has been ported lives in the instrumentation directory.
porting ddtrace/contrib to instrumentation
The steps below describe the process to port integrations from the reference directory containing the originally donated code to OpenTelemetry.
- Move the code into the instrumentation directory
mkdir -p instrumentation/opentelemetry-instrumentation-jinja2/src/opentelemetry/instrumentation/jinja2
git mv reference/ddtrace/contrib/jinja2 instrumentation/opentelemetry-instrumentation-jinja2/src/opentelemetry/instrumentation/jinja2
- Move the tests
git mv reference/tests/contrib/jinja2 instrumentation/opentelemetry-instrumentation-jinja2/tests
- Add
README.rst,setup.cfgandsetup.pyfiles and update them accordingly
cp _template/* instrumentation/opentelemetry-instrumentation-jinja2/
- Add
version.pyfile and update it accordingly
mv instrumentation/opentelemetry-instrumentation-jinja2/version.py instrumentation/opentelemetry-instrumentation-jinja2/src/opentelemetry/instrumentation/jinja2/version.py
- Fix relative import paths to using ddtrace package instead of using relative paths
- Update the code and tests to use the OpenTelemetry API