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

Make botocore instrumentation check if instrumentation has been suppressed #182

Conversation

NathanielRN
Copy link
Contributor

Description

Follow up to the PR originally submitted by @wangzlei that was on the Core repo: open-telemetry/opentelemetry-python#1291

By checking if instrumentation has been suppressed, we avoid double instrumentation if a call is already being traced from some other package.

Type of change

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

How Has This Been Tested?

Added a unit test which checks that the flag is used to stop further instrumentation.

Checklist:

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

@NathanielRN NathanielRN requested review from a team, owais and hectorhdzg and removed request for a team November 12, 2020 22:39
@NathanielRN NathanielRN force-pushed the suppress-downstream-botocore-instrumentation branch from b0c02de to 3b0e1e7 Compare November 12, 2020 22:41
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

LGTM

@NathanielRN NathanielRN force-pushed the suppress-downstream-botocore-instrumentation branch 3 times, most recently from de6291e to 0704b64 Compare November 13, 2020 17:17
@NathanielRN NathanielRN force-pushed the suppress-downstream-botocore-instrumentation branch from 0704b64 to 5c14227 Compare November 13, 2020 17:22
@lzchen lzchen merged commit 7513d7b into open-telemetry:master Nov 13, 2020
@NathanielRN NathanielRN deleted the suppress-downstream-botocore-instrumentation branch November 25, 2020 18:13
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