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

Perf #74

Merged
merged 5 commits into from
Feb 26, 2024
Merged

Perf #74

merged 5 commits into from
Feb 26, 2024

Conversation

thpierce
Copy link
Contributor

Copy benchmark-overhead from opentelemetry-java-instrumentation to performance-tests

In this commit we are copying all content from https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/benchmark-overhead to https://github.com/aws-observability/aws-otel-python-instrumentation/tree/main/performance-tests. We will be using benchmark-overhead as a template to building our own performance tests, so initially we are just copying all content over. Much of this content will be changed and/or deleted in upcoming commits, but for now, it's just a raw copy-paste.

This commit ONLY copies and pastes directly from upstream using the following command: cp opentelemetry-java-instrumentation/benchmark-overhead/* ../python-sdk/aws-otel-python-instrumentation/performance-tests -r

Additionally, there are 4 commits to fix build and code quality issues:

  1. Add gradle outputs to gitignore - Just adds to gitignore to avoid wrongly committed files
  2. Make spotless work - In this commit, we are making spotless work, as I found out that spotless is not being run in the upstream for benchmark-overhead. To achive this, I've added a license file to scripts and updated build.gradle.kts to reference it. Then I ran spotlessApply to bring the code up to expectations. In future commits, we will automatically run spotless to ensure code is up to standards on every commit.
  3. Run spotless on PR - We recently added Java code to this package to support performance tests. To ensure we maintain a high bar for code quality, we enabled spotless and in this commit, we enable running spotless on all PRs.
  4. Fix codespell issues - Remove two words that were tripping up codespell and add afterall to avoid failures seen here

In future commits, we will start updating the code, fix the copywrite notices, and removing unrelated code.

Testing:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thpierce thpierce requested a review from a team February 26, 2024 20:27
@thpierce thpierce force-pushed the perf branch 2 times, most recently from cf6f75a to 72b32ac Compare February 26, 2024 21:27
…rformance-tests

In this commit we are copying all content from https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/benchmark-overhead to https://github.com/aws-observability/aws-otel-python-instrumentation/tree/main/performance-tests. We will be using benchmark-overhead as a template to building our own performance tests, so initially we are just copying all content over. Much of this content will be changed and/or deleted in upcoming commits, but for now, it's just a raw copy-paste.
In this commit, we are making spotless work, as I found out that
spotless is not being run in the upstream for benchmark-overhead. To
achive this, I've added a license file to `scripts` and updated
build.gradle.kts to reference it. Then I ran spotlessApply to bring the
code up to expectations. In future commits, we will automatically run
spotless to ensure code is up to standards on every commit.
We recently added Java code to this package to support performance
tests. To ensure we maintain a high bar for code quality, we enabled
spotless and in this commit, we enable running spotless on all PRs.
@thpierce thpierce merged commit 18399ef into main Feb 26, 2024
7 checks passed
@thpierce thpierce deleted the perf branch February 26, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants