-
Notifications
You must be signed in to change notification settings - Fork 637
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
Update pymemcache instrumentation to support pymemcache >=1.3.5,<4 #935
Update pymemcache instrumentation to support pymemcache >=1.3.5,<4 #935
Conversation
|
7f1c560
to
1cb28a6
Compare
@rjduffner please sign the CLA. |
Hi @ocelotl sorry for the delay. I am still working through approvals at my company. Hopefully will have a signed CLA soon |
@ocelotl Signed. On vacation this week. Will look more next week. |
@rjduffner |
Hi @lzchen, I am on vacation this week. Will look more next week. |
48df656
to
d04abff
Compare
d04abff
to
b7f060f
Compare
28ff20f
to
703f85c
Compare
dcad88f
to
0cd26ca
Compare
@@ -13,4 +13,4 @@ | |||
# limitations under the License. | |||
|
|||
|
|||
_instruments = ("pymemcache ~= 1.3",) |
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.
After testing, there was a change in 1.3.5 that added version to the client. Before this the instrumentation fails.
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.
So for versions < 1.3.5, the instrumentation did not work properly? According to this, a VERSION
command was added. Was curious as to why without this it would cause the instrumentation to break?
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.
Yes, so the instrumentation uses .version() in the tests. This leads to a test failing. While I am fairly confident it would work for versions < 1.3.5, the tests don't and I wanted to keep this PRs scope low given all of the issues I am already currently having.
So locking the version to what actually passes the test felt like a good start.
instrumentation/opentelemetry-instrumentation-pymemcache/tests/test_pymemcache.py
Show resolved
Hide resolved
5f3bb01
to
763709f
Compare
instrumentation/opentelemetry-instrumentation-pymemcache/tests/test_pymemcache.py
Show resolved
Hide resolved
03aab6f
to
0c2c470
Compare
|
f4fba8f
to
2191db5
Compare
Description
Update pymemcache instrumentation to support newer versions of pymemcache
Fixes #842
Fixes #907
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Updated tests to run against newer versions of pymemcache.
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.