From ea1c911c9064b3abe7cf567a4ca3a0d0804859fe Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Tue, 30 Nov 2021 00:44:46 -0600 Subject: [PATCH] chore: Add library compatiblity by default in generators --- .../instrumentation/instrumentation_name/instrumentation.rb.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.instrumentation_generator/templates/lib/instrumentation/instrumentation_name/instrumentation.rb.tt b/.instrumentation_generator/templates/lib/instrumentation/instrumentation_name/instrumentation.rb.tt index 72c3ff815..e5cf596a8 100644 --- a/.instrumentation_generator/templates/lib/instrumentation/instrumentation_name/instrumentation.rb.tt +++ b/.instrumentation_generator/templates/lib/instrumentation/instrumentation_name/instrumentation.rb.tt @@ -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