Skip to content

Commit 5c57339

Browse files
chore: Update instrumentation generator (#1792)
* Add component_owners.yml to generated code * Update gemspec to use exact Ruby version * Update stdout message to have more detail about current CI setup
1 parent abdfbf8 commit 5c57339

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.instrumentation_generator/instrumentation_generator.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ def add_to_releases
5555
insert_into_file('.toys/.data/releases.yml', release_details, after: "gems:\n")
5656
end
5757

58+
def add_to_component_owners
59+
release_details = <<-HEREDOC
60+
instrumentation/#{instrumentation_gem_name}:
61+
# TODO: Add your GitHub username
62+
# - (your github username)
63+
HEREDOC
64+
65+
insert_into_file('.github/component_owners.yml', release_details, after: "components:\n")
66+
end
67+
5868
def add_to_instrumentation_all
5969
instrumentation_all_path = 'instrumentation/all'
6070
gemfile_text = "\ngem '#{instrumentation_gem_name}', path: '../#{instrumentation_name}'"

.instrumentation_generator/templates/gemspec.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
2323
Dir.glob('*.md') +
2424
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
26-
spec.required_ruby_version = ">= #{File.read(File.expand_path('../../gemspecs/RUBY_REQUIREMENT', __dir__))}"
26+
spec.required_ruby_version = ">= 3.2"
2727

2828
spec.add_dependency 'opentelemetry-instrumentation-base', '~> <%= instrumentation_base_version %>'
2929

bin/instrumentation_generator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ puts <<-EOF
66
77
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
88
9-
WARNING: Your gem will *NOT* be tested until you add it to the CI workflows in `.github/workflows/ci.yml`!!
9+
WARNING: Your gem will *NOT* be tested until you add it to the CI workflows in `.github/workflows/ci-contrib.yml`!! We use path filters to control what tests are run, so take a look at the available workflows to find the best fit.
1010
1111
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
1212

0 commit comments

Comments
 (0)