diff --git a/Gemfile.lock b/Gemfile.lock index b46f84ee..b8fe64a3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,6 +9,7 @@ PATH nokogiri (~> 1.10) opentelemetry-exporter-jaeger (= 0.20.1) opentelemetry-instrumentation-concurrent_ruby (= 0.19.2) + opentelemetry-instrumentation-http_client (= 0.19.3) opentelemetry-instrumentation-redis (= 0.21.2) opentelemetry-instrumentation-sinatra (= 0.19.3) opentelemetry-resource_detectors (= 0.19.1) @@ -85,6 +86,10 @@ GEM opentelemetry-instrumentation-concurrent_ruby (0.19.2) opentelemetry-api (~> 1.0) opentelemetry-instrumentation-base (~> 0.19.0) + opentelemetry-instrumentation-http_client (0.19.3) + opentelemetry-api (~> 1.0) + opentelemetry-common (~> 0.19.3) + opentelemetry-instrumentation-base (~> 0.19.0) opentelemetry-instrumentation-redis (0.21.2) opentelemetry-api (~> 1.0) opentelemetry-common (~> 0.19.3) diff --git a/docker/Gemfile.lock b/docker/Gemfile.lock index c461ae9b..2ebb5165 100644 --- a/docker/Gemfile.lock +++ b/docker/Gemfile.lock @@ -25,6 +25,7 @@ PATH nokogiri (~> 1.10) opentelemetry-exporter-jaeger (= 0.20.1) opentelemetry-instrumentation-concurrent_ruby (= 0.19.2) + opentelemetry-instrumentation-http_client (= 0.19.3) opentelemetry-instrumentation-redis (= 0.21.2) opentelemetry-instrumentation-sinatra (= 0.19.3) opentelemetry-resource_detectors (= 0.19.1) @@ -130,6 +131,10 @@ GEM opentelemetry-instrumentation-concurrent_ruby (0.19.2) opentelemetry-api (~> 1.0) opentelemetry-instrumentation-base (~> 0.19.0) + opentelemetry-instrumentation-http_client (0.19.3) + opentelemetry-api (~> 1.0) + opentelemetry-common (~> 0.19.3) + opentelemetry-instrumentation-base (~> 0.19.0) opentelemetry-instrumentation-redis (0.21.2) opentelemetry-api (~> 1.0) opentelemetry-common (~> 0.19.3) diff --git a/lib/vmpooler.rb b/lib/vmpooler.rb index c68e4ef9..d6669439 100644 --- a/lib/vmpooler.rb +++ b/lib/vmpooler.rb @@ -17,6 +17,7 @@ module Vmpooler # Dependencies for tracing require 'opentelemetry-instrumentation-concurrent_ruby' + require 'opentelemetry-instrumentation-http_client' require 'opentelemetry-instrumentation-redis' require 'opentelemetry-instrumentation-sinatra' require 'opentelemetry-sdk' @@ -265,6 +266,7 @@ def self.configure_tracing(startup_args, prefix, tracing_enabled, tracing_jaeger OpenTelemetry::SDK.configure do |c| c.use 'OpenTelemetry::Instrumentation::Sinatra' c.use 'OpenTelemetry::Instrumentation::ConcurrentRuby' + c.use 'OpenTelemetry::Instrumentation::HttpClient' c.use 'OpenTelemetry::Instrumentation::Redis' c.add_span_processor(span_processor) diff --git a/vmpooler.gemspec b/vmpooler.gemspec index 144ae0b1..49e23755 100644 --- a/vmpooler.gemspec +++ b/vmpooler.gemspec @@ -24,6 +24,7 @@ Gem::Specification.new do |s| s.add_dependency 'nokogiri', '~> 1.10' s.add_dependency 'opentelemetry-exporter-jaeger', '= 0.20.1' s.add_dependency 'opentelemetry-instrumentation-concurrent_ruby', '= 0.19.2' + s.add_dependency 'opentelemetry-instrumentation-http_client', '= 0.19.3' s.add_dependency 'opentelemetry-instrumentation-redis', '= 0.21.2' s.add_dependency 'opentelemetry-instrumentation-sinatra', '= 0.19.3' s.add_dependency 'opentelemetry-resource_detectors', '= 0.19.1'