Skip to content

Add opentelemetry-instrumentation#1959

Merged
lzchen merged 1 commit intoopen-telemetry:mainfrom
ocelotl:issue_1958
Jul 16, 2021
Merged

Add opentelemetry-instrumentation#1959
lzchen merged 1 commit intoopen-telemetry:mainfrom
ocelotl:issue_1958

Conversation

@ocelotl
Copy link
Copy Markdown
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
Copy link
Copy Markdown
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
Copy Markdown
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 review from a team, aabmass, codeboten, lzchen and owais and removed request for a team July 16, 2021 17:58
@ocelotl ocelotl requested review from codeboten and removed request for aabmass, codeboten, lzchen and owais 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-python-contrib/opentelemetry-instrumentation
./opentelemetry-instrumentation
./opentelemetry-sdk
./opentelemetry-instrumentation
Copy link
Copy Markdown
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?

([#1946](https://github.com/open-telemetry/opentelemetry-python/pull/1946))

### Added
- Moved `opentelemetry-instrumentation` to core repository.
Copy link
Copy Markdown
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.

sortfirst=
opentelemetry-api
opentelemetry-sdk
opentelemetry-instrumentation
Copy link
Copy Markdown
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?

settings.configure()


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

]

sys.path[:0] = exp_dirs + shim_dirs
sys.path[:0] = source_dirs + exp_dirs + shim_dirs
Copy link
Copy Markdown
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

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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

ocelotl commented Jul 16, 2021

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

@NathanielRN
Copy link
Copy Markdown
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