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

Auto-instrumentation should exclude packages mentioned in OTEL_PYTHON_DISABLED_INSTRUMENTATIONS env variable #1461

Merged
merged 19 commits into from
Dec 16, 2020

Conversation

dmarar
Copy link
Contributor

@dmarar dmarar commented Dec 9, 2020

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)
#1240

Type of change

Code
Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

  • The OTel specification has changed which prompted this PR to update the method interfaces of opentelemetry-api/ or opentelemetry-sdk/

  • The method interfaces of opentelemetry-instrumentation/ have changed

  • The method interfaces of test/util have changed

  • Scripts in scripts/ that were copied over to the Contrib repo have changed

  • Configuration files that were copied over to the Contrib repo have changed (when consistency between repositories is applicable) such as in

    • pyproject.toml
    • isort.cfg
    • .flake8
  • When a new .github/CODEOWNER is added

  • Major changes to project information, such as in:

    • README.md
    • CONTRIBUTING.md
  • Yes. - Link to PR:

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@dmarar dmarar requested review from a team, owais and lzchen and removed request for a team December 9, 2020 17:15
Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small changes requested 👍

@dmarar
Copy link
Contributor Author

dmarar commented Dec 11, 2020

Sure @ocelotl I will work on these changes.

CHANGELOG.md Outdated
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v0.16b1...HEAD)

### Added
- Added feature `auto-instrumentation should have a way to disable specific instrumentations`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to be in quotes and instead of saying "added feature <issue title>", it'd be nicer to just explain what exactly was added. For example, this could be something like "Added ability to disable specific instrumentations when using the opentelemetry-instrument command"

@dmarar
Copy link
Contributor Author

dmarar commented Dec 12, 2020

Sure @owais will work on these today.

@dmarar
Copy link
Contributor Author

dmarar commented Dec 12, 2020

@owais , Do we need to update the README.rst to update this new env var. something like this

image

Modified the README.rst to add this detail.
@dmarar
Copy link
Contributor Author

dmarar commented Dec 12, 2020

@ocelotl , @owais have made the changes. Please let me know for any further improvements.

Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor typo found, not enough to not approve 👍

…n/auto_instrumentation/sitecustomize.py

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
@dmarar
Copy link
Contributor Author

dmarar commented Dec 16, 2020

Thanks @ocelotl , @lzchen @owais for your time and reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants