Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contributing: add guidance on how to update package versions support #3090

Merged
merged 14 commits into from
Dec 18, 2024
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,19 @@ Below is a checklist of things to be mindful of when implementing a new instrume
- Testing
- When adding a new instrumentation remember to update `tox.ini` adding appropriate rules in `envlist`, `command_pre` and `commands` sections

### Update supported instrumentation package versions

- Update the respective instrumentation `pyproject.toml` file in _instruments_ entry under `[project.optional-dependencies]` section
emdneto marked this conversation as resolved.
Show resolved Hide resolved
- Update instrumentation `package.py` file in `_instruments` variable
- Run command `tox -e generate` to regenerate necessary files

If you're adding support for a new version of the instrumentation package, follow these additional steps:

- Add new test-requirements.txt file with the respective package version required for testing
emdneto marked this conversation as resolved.
Show resolved Hide resolved
- Add a new test environment entry for the package version in `tox.ini` and run `tox -e generate-workflows` to generate new workflows
emdneto marked this conversation as resolved.
Show resolved Hide resolved

Example PRs: [#2976](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976), [#2845](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2845)

## Guideline for GenAI instrumentations

Instrumentations that relate to [Generative AI](https://opentelemetry.io/docs/specs/semconv/gen-ai/) systems will be placed in the [instrumentation-genai](./instrumentation-genai) folder. This section covers contributions related to those instrumentations. Please note that the [guidelines for instrumentations](#guideline-for-instrumentations) and [expectations from contributors](#expectations-from-contributors) still apply.
Expand Down
Loading