Odigos initializer of OpenTelemetry for Python
This package is utilized in the Odigos project to initialize OpenTelemetry components for automatic instrumentation of Python applications.
Note: This package is currently meant to be used in the odigos project with odigos OpAMP server. It cannot be used as a standalone package in arbitrary Python applications.
- Start the Local PyPI Server:
Build and run a local PyPI server with the following command:
docker build -t local-pypi-server -f debug.Dockerfile . && docker run --rm --name pypi-server -p 8080:8080 local-pypi-server
- Note: You need to run the Docker build command each time you make changes to odigos-opentelemetry-python.
- Update the Development Configuration:
The setup.py / requirements.txt should point to the local pypi repo to pull the python package.
setup.py e.g:
install_requires = [
odigos-opentelemetry-python @ http://localhost:8080/packages/odigos_opentelemetry_python-0.1.1-py3-none-any.whl
...
]
requirements.txt e.g:
..
..
odigos-opentelemetry-python @ http://localhost:8080/packages/odigos_opentelemetry_python-0.1.1-py3-none-any.whl
-
Ensure all changes are merged into the
main
branch. -
Create a tag for the new version.
git tag <TAG>
- Push the tag to the remote repository.
git push origin <TAG>
- Let the GitHub workflow handle versioning and publishing to odigos-opentelemetry-python on PyPI.