Skip to content

Commit

Permalink
chore: Add library compatiblity by default in generators
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Nov 30, 2021
1 parent 4f4f856 commit 45e53d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .instrumentation_generator/templates/gemspec.tt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'webmock', '~> 3.7.6'
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_development_dependency 'yard-doctest', '~> 0.1.6'
# TODO Add semantic version constraints
spec.add_development_dependency '<%= instrumentation_name %>'

if spec.respond_to?(:metadata)
spec.metadata['changelog_uri'] = "https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-<%= instrumentation_name %>/v#{OpenTelemetry::Instrumentation::<%= pascal_cased_instrumentation_name %>::VERSION}/file.CHANGELOG.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module OpenTelemetry
module <%= pascal_cased_instrumentation_name %>
# The Instrumentation class contains logic to detect and install the <%= pascal_cased_instrumentation_name %> instrumentation
class Instrumentation < OpenTelemetry::Instrumentation::Base
instrumented_library_name '<%= instrumentation_name %>'

install do |_config|
require_dependencies
end
Expand Down

0 comments on commit 45e53d9

Please sign in to comment.