-
Notifications
You must be signed in to change notification settings - Fork 658
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
Split auto instrument & bootstrap into new package #1415
Split auto instrument & bootstrap into new package #1415
Conversation
7142271
to
5499d30
Compare
EDITED - (RESOLVED)
Thanks to @ocelotl I found out that the scripts are generated through the See below:
This is done through the the console scripts entry point as outlined by
Same behavior as above.
NOTE: I do think if people had |
5499d30
to
e1b6509
Compare
@@ -68,6 +72,7 @@ changedir = | |||
test-core-api: opentelemetry-api/tests | |||
test-core-sdk: opentelemetry-sdk/tests | |||
test-core-proto: opentelemetry-proto/tests | |||
test-core-auto_instrumentation: opentelemetry-auto-instrumentation/tests |
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.
Not sure why, but when I do test-core-auto-instrumentation
it doesn't find any tests at all... I had to add an underscore _
for it to find the tests. Some matching issue I guess?
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 wouldn't expect the -
vs _
to make a difference here
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.
Ah I can't explain why it doesn't work with the -
but I can confirm that it does not :/ It was the difference maker here for some reason.
Even test-coree-auto-instrumentation
worked just fine. But specifically test-core-auto-instrumentation
cause tox
to not find any tests.
How do you want to proceed? Is this a blocker?
Thanks. I've wanted to do something similar. I think the bootstrap command should be part of this package as well. Don't see a reason to keep the two commands in different packages. If we move bootstrap, opentelemetry-instrumentation will contain just shared utilities and machinery that make it easier to write an instrumentation meaning end users will never have to worry about it and the experience would look something like: pip install openetelemtry-auto-instrumentation
opentelemetry-bootstrap -a=install
opentelemetry-instrument ./main.py |
At this point, we could even see this new package as the official OpenTelemetry Python distribution and actually call it just People who want a custom SDK would install individual components they need to use with their own SDK. This in a way looks very similar to the following wrappers or distributions: https://github.com/lightstep/otel-launcher-python |
@owais Thats a really cool thought! I can definitely relate to wanting to just run a @codeboten and @lzchen what do you think of this? I can change it to be as so! |
e1b6509
to
d590521
Compare
d9f44d3
to
89cbbf1
Compare
@owais I've moved bootstrap into The more I think about it the more I really like the idea of having this be the official Even on |
19aa2a7
to
e03cb5f
Compare
@owais If we do want to push for this, we should introduce "auto-instrumentation" concept into the specs, instead of doing something special for Python. |
@lzchen You're right that there is nothing in the specs regarding this, but when I searched the org I found this enhancement proposal for OpenTelemetry without Manual instrumentation. I would argue that this "new" package today satisfies all the requirements set out in the proposal. i.e.
However, notably, the proposal suggests that all languages should have an entirely separate repo for auto instrumentation for that language. So overall, I once again agree that it would be cool :) But I agree that we should not mark it as OT official if it's not yet.
I think this is exactly the goal of this new This PR should not solve all those questions for now. Instead it just cleans up the expectations and dependencies that come with downloading Considering that, would you and @owais considering approving this PR so we can try this "plugin" out in the next release? |
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.
Thanks for taking this on, the scripts/build.sh
will need to be updated as well
@@ -68,6 +72,7 @@ changedir = | |||
test-core-api: opentelemetry-api/tests | |||
test-core-sdk: opentelemetry-sdk/tests | |||
test-core-proto: opentelemetry-proto/tests | |||
test-core-auto_instrumentation: opentelemetry-auto-instrumentation/tests |
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 wouldn't expect the -
vs _
to make a difference here
e03cb5f
to
ba8531a
Compare
Thanks for your comments! Updated |
+1 |
Closing this because we went with #1405 as a temporary solution. |
Description
As a follow up to #1306 where we made Auto Instrumentation configurable (which was important because once the Tracer Provider is configured you never can configure it again!) we took a dependency on
opentelemtry-sdk
.This is okay for the auto instrumentation alone, but the actual instrumentation packages should not be forced to depend on the SDK as mentioned in #1252.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Unit tests are all passing.
Checklist:
- [] Unit tests have been added