You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update the respective instrumentation `pyproject.toml` file in _instruments_ entry under `[project.optional-dependencies]` section
284
-
- Update instrumentation `package.py` file in `_instruments` variable
285
-
- Run command `tox -e generate` to regenerate necessary files
283
+
- Navigate to the **instrumentation package directory:**
284
+
- Update the respective instrumentation **`pyproject.toml`** file by modifying _instruments_ entry in the [project.optional-dependencies] section with the new version constraint
285
+
- Update instrumentation **`package.py`** file in `_instruments` variable with the new version constraint
286
+
- At the **root of the project directory**, run `tox -e generate` to regenerate necessary files
286
287
287
288
If you're adding support for a new version of the instrumentation package, follow these additional steps:
288
289
289
-
- Add new test-requirements.txt file with the respective package version required for testing
290
-
- Add a new test environment entry for the package version in `tox.ini` and run `tox -e generate-workflows` to generate new workflows
290
+
-At the **instrumentation package directory:**Add new test-requirements.txt file with the respective package version required for testing
291
+
-At the **root of the project directory**: Add a new test environment entry for the package version in [tox.ini](./tox.ini) and run `tox -e generate-workflows` to regenerate new workflows accordingly. At the same file, search for `opentelemetry-instrumentation-{package}/test-requirements` and add a new line to point to the new test-requirements.txt you created in the previous step so tox can install the correct requirements.
291
292
292
293
Example PRs: [#2976](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976), [#2845](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2845)
0 commit comments