Thanks to visit codestin.com
Credit goes to github.com

Skip to content

codeboten/opentelemetry-python-contrib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 donate by DataDog in the reference folder. All instrumentation that has been ported lives in the instrumentors directory.

porting ddtrace/contribs to instrumentors

The steps below describe the process to port integrations from the reference directory containing the originally donated code to OpenTelemetry.

  1. Move the code into the instrumentors directory
git mv reference/ddtrace/contribs/jinja2 instrumentors/
  1. Move the tests
git mv reference/tests/contrib/jinja2 instrumentors/jinja2/tests
  1. Make the package installable
    1. Move source code to package path
mkdir -p instrumentors/jinja2/src/opentelemetry/ext/jinja2
git mv instrumentors/jinja2/*.py instrumentors/jinja2/src/opentelemetry/ext/jinja2
  1. Add README.rst, setup.cfg and setup.py files and update them accordingly
cp _template/* instrumentors/jinja2/
  1. Add version.py file and update it accordingly
mv instrumentors/jinja2/version.py instrumentors/jinja2/src/opentelemetry/ext/jinja2/version.py
  1. Fix relative import paths to using ddtrace package instead of using relative paths
  2. Update the code and tests to use the OpenTelemetry API

About

No description, website, or topics provided.

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.Apache
Unknown
LICENSE.BSD3

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Other 0.4%