-
Notifications
You must be signed in to change notification settings - Fork 599
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
pyramid: Fix which package is the correct caller in _traced_init. #830
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @kenrobbins! Please sign the CLA
.../opentelemetry-instrumentation-pyramid/src/opentelemetry/instrumentation/pyramid/__init__.py
Outdated
Show resolved
Hide resolved
CLA is signed. Tests added. Should be mergeable now I think. |
@kenrobbins please fix lint ✌️ |
Fix quotes in pyramid test
@kenrobbins Please fix the lint and conflict |
@ocelotl @srikanthccv please check now. should be fixed. thanks. |
@kenrobbins requires some re-formatting to fix lint and we are good to go. |
@ocelotl @srikanthccv fixed lint again. 🤞 thanks. |
@kenrobbins |
So I've been trying to see what's going on with the new test that is failing. Current working theory: Kens fix fixes it for CPython but breaks it for Pypy Possible fix: conditionally check for which interpreter is being used in |
|
I committed a change to account for that. Let's see if it passes. |
@srikanthccv if you have a second to approve the workflows again we'd appreciate it 🙏 |
Once more please @srikanthccv 😬 thanks |
Description
The _traced_init wrapper is getting one caller too far up. Example below.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I put a pdb statement in the Registry constructor, which is called by the Configurator constructor. This is the same code running. The top has otel enabled and the bottom has it disabled.
Added unit test to ensure registry name value matches the module of the caller.
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.