-
Notifications
You must be signed in to change notification settings - Fork 646
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
Add pymssql instrumentation #394
Conversation
It seems from the CI logs that pymssql does not build for pypy3. Would it be acceptable to disable pypy3 support in the tests for this instrumentation? |
Also, the docs fails to build because of this error: sphinx.errors.SphinxWarning: autodoc: failed to import module 'pymssql' from module 'opentelemetry.instrumentation'; the following exception was raised: I'm trying to figure out my error, can someone experienced with the repo help? |
0860e38
to
92d7340
Compare
I had to subclass |
.../opentelemetry-instrumentation-pymssql/src/opentelemetry/instrumentation/pymssql/__init__.py
Outdated
Show resolved
Hide resolved
92d7340
to
faeea0a
Compare
|
0e2df03
to
b93ad00
Compare
@guillaumep |
@lzchen I was expecting help with the issues I mentioned in the comments above, but since I never got any replies up to now I had put this work aside. pymssql instrumention is still a feature we want at work (outbox.com), so if I can have proper support regarding my questions I'll be glad to finish this PR. Let me rebase the PR this week and post back here with the current issues I will have. |
@guillaumep |
17d054f
to
0333424
Compare
|
96980a5
to
4cc4753
Compare
@lzchen now ready for review! |
Thanks for the patience on this review. Would you be able to add your name to component-owners.yml? |
For now yes. |
8527255
to
986041c
Compare
37bcf17
to
01f7b13
Compare
instrumentation/opentelemetry-instrumentation-pymssql/pyproject.toml
Outdated
Show resolved
Hide resolved
opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py
Outdated
Show resolved
Hide resolved
instrumentation/opentelemetry-instrumentation-pymssql/test-requirements.txt
Outdated
Show resolved
Hide resolved
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.
Couple of unresolved comments but other than that LGTM
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.
With the versioning fixed and the bootstrap_gen updated LGTM
instrumentation/opentelemetry-instrumentation-pymssql/pyproject.toml
Outdated
Show resolved
Hide resolved
a6c7885
to
6d4377a
Compare
@guillaumep please run |
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.
LGTM when CI gets fixed
6d4377a
to
2450145
Compare
What would be your recommendation to use the package as long as it has not been published yet @guillaumep ? |
There should be a release shortly, in one or two weeks. In the meantime you can use the same technique as I suggested here to produce a package you may manuall install using pip: #394 (comment) Installing a local package could be done for a Docker build, copying the file to the Docker image then doing a pip install for example. Please ask a question on Stack Overflow or similar forum if you need help with that. |
* Add pymssql instrumentation * Run tox -e generate * tox -e generate-workflows --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Description
This pull request implements instrumentation for the pymssql library (https://pypi.org/project/pymssql/).
It is basically a copy of the pymysql instrumentation.
Still a work-in-progress.
Type of change
How Has This Been Tested?
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.