Skip to content
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

Merged
merged 1 commit into from Jul 16, 2021
Merged

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Jul 15, 2021

Fixes #1958

@ocelotl ocelotl force-pushed the issue_1958 branch 4 times, most recently from 16a5448 to 7e2bfd7 Compare July 15, 2021 22:25
docs-requirements.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@codeboten codeboten left a 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.

@ocelotl ocelotl force-pushed the issue_1958 branch 2 times, most recently from 220ea1e to cdda41e Compare July 15, 2021 23:02
@ocelotl ocelotl self-assigned this Jul 15, 2021
@ocelotl ocelotl added the Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary label Jul 15, 2021
@ocelotl ocelotl force-pushed the issue_1958 branch 4 times, most recently from 49da963 to bdc9a4f Compare July 15, 2021 23:49
@ocelotl ocelotl requested a review from codeboten July 15, 2021 23:50
Copy link
Contributor

@codeboten codeboten left a 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.

@ocelotl ocelotl marked this pull request as ready for review July 16, 2021 17:58
@ocelotl ocelotl requested a review from a team as a code owner July 16, 2021 17:58
@ocelotl ocelotl requested review from owais, codeboten, lzchen and aabmass and removed request for a team July 16, 2021 17:58
@ocelotl ocelotl requested review from codeboten and removed request for owais, codeboten, lzchen and aabmass July 16, 2021 18:07
@lzchen lzchen merged commit e78c9c4 into open-telemetry:main Jul 16, 2021
@ocelotl ocelotl deleted the issue_1958 branch July 16, 2021 18:13
./opentelemetry-sdk
./opentelemetry-instrumentation
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Contributor

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 = [
Copy link
Contributor

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:

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

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?

Suggested change
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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commands_pre =
python -m pip install {toxinidir}/opentelemetry-python-contrib/opentelemetry-instrumentation
commands-pre =
python -m pip install {toxinidir}/opentelemetry-instrumentation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python -m pip install {toxinidir}/opentelemetry-instrumentation
pip install {toxinidir}/opentelemetry-instrumentation

Copy link
Contributor

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:

py3{6,7,8,9}: python -m pip install -U pip setuptools wheel

@ocelotl
Copy link
Contributor Author

ocelotl commented Jul 16, 2021

Sorry, @NathanielRN, we got this merged. Please consider opening an issue for your comments 👍

@NathanielRN
Copy link
Contributor

@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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move instrumentation to the core repo
4 participants