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

Guard injection against old rubies #4140

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

lloeki
Copy link
Contributor

@lloeki lloeki commented Nov 21, 2024

What does this PR do?

Add a known-processable frontend script to the main injection script.

Motivation:

Main injection script may be attempted to be loaded via RUBYOPT=-r'/path/to/host_inject.rb' but be unprocessable.

Change log entry

Add safe NOOP injection script for very old rubies

Additional Notes:

How to test the change?

@lloeki lloeki requested a review from a team as a code owner November 21, 2024 15:17
@github-actions github-actions bot added the single-step Single Step APM Instrumentation label Nov 21, 2024
lib-injection/host_inject_main.rb Show resolved Hide resolved
lib-injection/host_inject_main.rb Show resolved Hide resolved
lib-injection/host_inject_main.rb Show resolved Hide resolved
lib-injection/host_inject_main.rb Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.77%. Comparing base (bbee6be) to head (f9aec1a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4140   +/-   ##
=======================================
  Coverage   97.77%   97.77%           
=======================================
  Files        1353     1353           
  Lines       81820    81820           
  Branches     4145     4145           
=======================================
+ Hits        79997    79999    +2     
+ Misses       1823     1821    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-commenter
Copy link

pr-commenter bot commented Nov 21, 2024

Benchmarks

Benchmark execution time: 2024-11-27 13:30:19

Comparing candidate commit f9aec1a in PR branch lloeki/guard-injection-against-old-rubies with baseline commit bbee6be in branch master.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 30 metrics, 2 unstable metrics.

scenario:profiler - sample timeline=false

  • 🟩 throughput [+1.085op/s; +1.093op/s] or [+19.403%; +19.552%]

Copy link
Contributor

@TonyCTHsu TonyCTHsu left a comment

Choose a reason for hiding this comment

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

Since the PR adds a new file, this script needs to be updated.

cp ../lib-injection/host_inject.rb sources

@lloeki lloeki force-pushed the lloeki/guard-injection-against-old-rubies branch 2 times, most recently from ff2bea5 to afe6b26 Compare November 22, 2024 14:29
@lloeki lloeki requested a review from a team as a code owner November 22, 2024 14:29
lib-injection/host_inject.rb Outdated Show resolved Hide resolved
lib-injection/host_inject.rb Outdated Show resolved Hide resolved
@lloeki lloeki force-pushed the lloeki/guard-injection-against-old-rubies branch from 50fa474 to f9aec1a Compare November 27, 2024 12:50
@lloeki lloeki merged commit e91980e into master Nov 29, 2024
290 checks passed
@lloeki lloeki deleted the lloeki/guard-injection-against-old-rubies branch November 29, 2024 09:40
@github-actions github-actions bot added this to the 2.8.0 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
single-step Single Step APM Instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants