-
Notifications
You must be signed in to change notification settings - Fork 624
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
kafka-python Instrument temporary fork, kafka-python-ng inside kafka-python's instrumentation #2537
kafka-python Instrument temporary fork, kafka-python-ng inside kafka-python's instrumentation #2537
Conversation
14f11b9
to
9e5770d
Compare
@rjduffner My preferred approach would be something like this but unfortunately we are using a field with the semantics already defined (must be strings) #2409 |
...pentelemetry-instrumentation-kafka-python/src/opentelemetry/instrumentation/kafka/package.py
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.
I think would also be nice to have kafka-python-ng
in a test-requirements file to check we support it on tests as well
26b786c
to
6ebb04c
Compare
@emdneto, it looks like fastapi and fastapi-slim do something similar
Ive already copied what they are doing for the instruments part, ill copy them for the tests too. Thanks for the suggestion. |
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.
@rjduffner It seems we have a problem with the way fastapi-slim support was implemented, so hopefully we can use the same fix here. See #2756
Ha, I just saw that and was fighting with bugs in the tests and switched my code back to doing it the way the fix for fastAPI is doing it. Great timing |
fbd20cf
to
6bc5c8c
Compare
@xrmx, I updated the tox to switch everything to kafka-pythonng from kafka-python-ng. However, now the action only installs the kafka-python-ng instrumentation and doesn't actually test with it because I didn't update these to test kafka-python-ng side https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/tox.ini#L937-L941 I saw that fastapislim didn't update those but that seems like an oversight. Im guessing we want a section here for the kafka-python-ng tests that would be identical to the kafka-python ones. |
@rjduffner, you're right; the job isn't running the test. I will submit a fix.
|
@emdneto cool, ill do the same here. Thanks for the confirmation. |
ef9b494
to
3696cc9
Compare
Description
This PR adds kafka-python-ng, a temporary fork of kafka-python due to pypi access issues, to the kafka-python instrumentation.
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.