pyramid: Fix which package is the correct caller in _traced_init.#830
pyramid: Fix which package is the correct caller in _traced_init.#830srikanthccv merged 19 commits intoopen-telemetry:mainfrom
Conversation
codeboten
left a comment
There was a problem hiding this comment.
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.