lib/opentelemetry/instrumentation/sinatra/instrumentation.rb in opentelemetry-instrumentation-sinatra-0.20.0 vs lib/opentelemetry/instrumentation/sinatra/instrumentation.rb in opentelemetry-instrumentation-sinatra-0.21.0

- old
+ new

@@ -11,9 +11,11 @@ module Sinatra # The Instrumentation class contains logic to detect and install the Sinatra # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_| + OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.install({}) + ::Sinatra::Base.register Extensions::TracerExtension end present do defined?(::Sinatra)