-
Notifications
You must be signed in to change notification settings - Fork 666
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 opentelemetry-instrumentation #1959
Conversation
16a5448
to
7e2bfd7
Compare
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.
Looks pretty good overall, one question about dependencies that don't seem necessary.
220ea1e
to
cdda41e
Compare
49da963
to
bdc9a4f
Compare
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.
It looks like this change is mixing the release process of updating version numbers with the change to move opentelemetry-instrumentation.
I would recommend reverting the change for version numbers first, then moving this package over, and then creating the release. Otherwise I worry we may miss something.
docs/examples/error_handler/error_handler_0/src/error_handler_0/version.py
Outdated
Show resolved
Hide resolved
951de73
to
115a51c
Compare
./opentelemetry-sdk | ||
./opentelemetry-instrumentation |
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.
Probably need to delete this line?
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
([#1946](https://github.com/open-telemetry/opentelemetry-python/pull/1946)) | |||
|
|||
### Added | |||
- Moved `opentelemetry-instrumentation` to core repository. |
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.
- Moved `opentelemetry-instrumentation` to core repository. | |
- Moved `opentelemetry-instrumentation` back to core repository from contrib. |
@@ -7,6 +7,7 @@ ignore= | |||
sortfirst= | |||
opentelemetry-api | |||
opentelemetry-sdk | |||
opentelemetry-instrumentation |
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.
Shouldn't this go above opentelemetry-sdk
since it depends on instrumentation?
@@ -23,6 +23,11 @@ | |||
|
|||
settings.configure() | |||
|
|||
|
|||
source_dirs = [ |
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 know this is what this was called before but we should change the name:
source_dirs = [ | |
instr_source_dir = [ |
@@ -37,7 +42,7 @@ | |||
if isdir(join(shim, f)) | |||
] | |||
|
|||
sys.path[:0] = exp_dirs + shim_dirs | |||
sys.path[:0] = source_dirs + exp_dirs + shim_dirs |
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.
sys.path[:0] = source_dirs + exp_dirs + shim_dirs | |
sys.path[:0] = instr_source_dir + exp_dirs + shim_dirs |
@@ -16,7 +16,7 @@ DISTDIR=dist | |||
mkdir -p $DISTDIR | |||
rm -rf $DISTDIR/* | |||
|
|||
for d in opentelemetry-api/ opentelemetry-sdk/ opentelemetry-proto/ opentelemetry-distro/ opentelemetry-semantic-conventions/ exporter/*/ shim/*/ propagator/*/; do | |||
for d in opentelemetry-api/ opentelemetry-sdk/ opentelemetry-instrumentation/ opentelemetry-proto/ opentelemetry-distro/ opentelemetry-semantic-conventions/ exporter/*/ shim/*/ propagator/*/; do |
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.
Does instrumentation need to go before SDK?
for d in opentelemetry-api/ opentelemetry-sdk/ opentelemetry-instrumentation/ opentelemetry-proto/ opentelemetry-distro/ opentelemetry-semantic-conventions/ exporter/*/ shim/*/ propagator/*/; do | |
for d in opentelemetry-api/ opentelemetry-instrumentation/ opentelemetry-sdk/ opentelemetry-proto/ opentelemetry-distro/ opentelemetry-semantic-conventions/ exporter/*/ shim/*/ propagator/*/; do |
@@ -197,7 +203,7 @@ deps = | |||
commands_pre = | |||
python -m pip install -e {toxinidir}/opentelemetry-api[test] | |||
python -m pip install -e {toxinidir}/opentelemetry-semantic-conventions[test] | |||
python -m pip install {toxinidir}/opentelemetry-python-contrib/opentelemetry-instrumentation | |||
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test] |
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.
It doesn't look like opentelemetry-instrumentation
extra test
has anything?
commands_pre = | ||
python -m pip install {toxinidir}/opentelemetry-python-contrib/opentelemetry-instrumentation | ||
commands-pre = | ||
python -m pip install {toxinidir}/opentelemetry-instrumentation |
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.
python -m pip install {toxinidir}/opentelemetry-instrumentation | |
pip install {toxinidir}/opentelemetry-instrumentation |
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.
We should have pip
installed:
Line 118 in dfd2980
py3{6,7,8,9}: python -m pip install -U pip setuptools wheel |
Sorry, @NathanielRN, we got this merged. Please consider opening an issue for your comments 👍 |
@ocelotl I think there are quite a few improvements we can make to this PR. I also think we should address these changes before we go with the release, otherwise these changes will be too far removed in Git History... |
Fixes #1958