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

Capture memcache host & port #1194

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

hmstepanek
Copy link
Contributor

@hmstepanek hmstepanek commented Aug 15, 2024

Overview

Capture host & port to create AWS entity metric on bmemcached, aiomcache, and pymemcache libraries.
Do not capture host and port info for no longer supported libraries umemcached (doesn't support Python3).

@hmstepanek hmstepanek requested a review from a team as a code owner August 15, 2024 22:42
Copy link

github-actions bot commented Aug 15, 2024

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 3 0 4.6s
✅ PYTHON black 6 0 0 0.79s
❌ PYTHON flake8 6 1 0.43s
✅ PYTHON isort 6 0 0 0.23s
✅ PYTHON pylint 6 0 2.04s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@codecov-commenter
Copy link

codecov-commenter commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 81.44%. Comparing base (2d6525e) to head (c201bf1).

Files with missing lines Patch % Lines
newrelic/hooks/datastore_bmemcached.py 45.45% 0 Missing and 6 partials ⚠️
newrelic/hooks/datastore_aiomcache.py 71.42% 0 Missing and 2 partials ⚠️
newrelic/hooks/datastore_pymemcache.py 71.42% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1194      +/-   ##
==========================================
- Coverage   81.60%   81.44%   -0.16%     
==========================================
  Files         197      197              
  Lines       21803    21825      +22     
  Branches     3807     3817      +10     
==========================================
- Hits        17792    17776      -16     
- Misses       2897     2931      +34     
- Partials     1114     1118       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hmstepanek hmstepanek force-pushed the capture-host-port-info-pymemcache branch from 257bd66 to 8bdf533 Compare August 16, 2024 00:12
@hmstepanek hmstepanek marked this pull request as draft August 16, 2024 00:31
@hmstepanek hmstepanek changed the title Capture pymemcache host & port Capture memcache host & port Aug 16, 2024
@hmstepanek hmstepanek force-pushed the capture-host-port-info-pymemcache branch from 97649b8 to 18fd4f4 Compare August 28, 2024 23:35
@hmstepanek hmstepanek marked this pull request as ready for review August 28, 2024 23:36
@hmstepanek hmstepanek force-pushed the capture-host-port-info-pymemcache branch from 18fd4f4 to fe5a962 Compare August 29, 2024 21:12
@jairhenrique
Copy link
Contributor

It would be nice to add this information to the aiomcache database store as well.

@hmstepanek
Copy link
Contributor Author

hmstepanek commented Sep 4, 2024

It would be nice to add this information to the aiomcache database store as well.

I have chosen not to do this since aiomcache has not been updated since 2014. It appears to be dead. It also does not support past Python 3.4 (we only officially support down to Python 3.7 right now). If it is updated at some point in the future then we can do this at that time. Right now I don't see that it's worth the effort.

@jairhenrique
Copy link
Contributor

I have chosen not to do this since aiomcache has not been updated since 2014. It appears to be dead. It also does not support past Python 3.4 (we only officially support down to Python 3.7 right now). If it is updated at some point in the future then we can do this at that time. Right now I don't see that it's worth the effort.

Maybe we are not talking about the same project. The latest version of aiomcache was released in May 2024. https://github.com/aio-libs/aiomcache/releases/tag/v0.8.2

I added the instrumentation in this pr.

@hmstepanek
Copy link
Contributor Author

I have chosen not to do this since aiomcache has not been updated since 2014. It appears to be dead. It also does not support past Python 3.4 (we only officially support down to Python 3.7 right now). If it is updated at some point in the future then we can do this at that time. Right now I don't see that it's worth the effort.

Maybe we are not talking about the same project. The latest version of aiomcache was released in May 2024. https://github.com/aio-libs/aiomcache/releases/tag/v0.8.2

I added the instrumentation in this pr.

You're right! We were talking about different libraries! Sorry-yes I will add that in!

@hmstepanek hmstepanek force-pushed the capture-host-port-info-pymemcache branch from ea4039a to 7863aec Compare September 4, 2024 23:28
@TimPansino TimPansino self-requested a review September 9, 2024 21:27
@hmstepanek hmstepanek force-pushed the capture-host-port-info-pymemcache branch from 5545230 to c201bf1 Compare September 17, 2024 23:42
@hmstepanek hmstepanek merged commit 8094552 into main Sep 17, 2024
49 of 54 checks passed
@hmstepanek hmstepanek deleted the capture-host-port-info-pymemcache branch September 17, 2024 23:56
@mergify mergify bot removed the tests-failing label Sep 17, 2024
@hmstepanek hmstepanek added this to the v10.0.0 milestone Sep 20, 2024
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