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

Implement checking for suppression key in pymongo instrumentation #736

Merged
merged 7 commits into from
Oct 15, 2021

Conversation

andrew-matteson
Copy link
Contributor

Description

Fixes #687

Check for suppression key and return early from pymongo monitoring hooks if it is set.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Added a test that suppression key results in early return.

  • test_suppression_key

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

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

I don't think any doc needs to be updated.

Add test for suppression key with pymongo


changelog update
@andrew-matteson andrew-matteson requested a review from a team as a code owner October 13, 2021 16:18
CHANGELOG.md Show resolved Hide resolved
@owais owais enabled auto-merge (squash) October 15, 2021 00:18
@owais owais merged commit b5d3074 into open-telemetry:main Oct 15, 2021
nicholasgribanov pushed a commit to nicholasgribanov/opentelemetry-python-contrib that referenced this pull request Oct 29, 2021
…en-telemetry#736)

* Implement checking for suppression key


Add test for suppression key with pymongo


changelog update

* Linting

* pylint

* Bad reformat

* Update changelog with PR

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
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.

opentelemetry-instrumentation-pymongo is not checking suppress_information
4 participants