Add opentelemetry-instrumentation#1959
Conversation
16a5448 to
7e2bfd7
Compare
codeboten
left a comment
There was a problem hiding this comment.
Looks pretty good overall, one question about dependencies that don't seem necessary.
220ea1e to
cdda41e
Compare
49da963 to
bdc9a4f
Compare
codeboten
left a comment
There was a problem hiding this comment.
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-python-contrib/opentelemetry-instrumentation | ||
| ./opentelemetry-instrumentation | ||
| ./opentelemetry-sdk | ||
| ./opentelemetry-instrumentation |
There was a problem hiding this comment.
Probably need to delete this line?
| ([#1946](https://github.com/open-telemetry/opentelemetry-python/pull/1946)) | ||
|
|
||
| ### Added | ||
| - Moved `opentelemetry-instrumentation` to core repository. |
There was a problem hiding this comment.
| - Moved `opentelemetry-instrumentation` to core repository. | |
| - Moved `opentelemetry-instrumentation` back to core repository from contrib. |
| sortfirst= | ||
| opentelemetry-api | ||
| opentelemetry-sdk | ||
| opentelemetry-instrumentation |
There was a problem hiding this comment.
Shouldn't this go above opentelemetry-sdk since it depends on instrumentation?
| settings.configure() | ||
|
|
||
|
|
||
| source_dirs = [ |
There was a problem hiding this comment.
I know this is what this was called before but we should change the name:
| source_dirs = [ | |
| instr_source_dir = [ |
| ] | ||
|
|
||
| sys.path[:0] = exp_dirs + shim_dirs | ||
| sys.path[:0] = source_dirs + exp_dirs + shim_dirs |
There was a problem hiding this comment.
| sys.path[:0] = source_dirs + exp_dirs + shim_dirs | |
| sys.path[:0] = instr_source_dir + exp_dirs + shim_dirs |
| 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.
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 |
| 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.
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.
| python -m pip install {toxinidir}/opentelemetry-instrumentation | |
| pip install {toxinidir}/opentelemetry-instrumentation |
There was a problem hiding this comment.
We should have pip installed:
Line 118 in dfd2980
|
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