Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Mar 5, 2023
1 parent ef52a8c commit c53efcf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Instrumentation < OpenTelemetry::Instrumentation::Base
end

present do
defined?(::Rack)
defined?(::Rack) && defined?(::Rack::Events)
end

option :allowed_request_headers, default: [], validate: :array
Expand Down Expand Up @@ -49,7 +49,7 @@ def middleware_args
private

def require_dependencies
require_relative 'middlewares/event_handler' if defined?(Rack::Events)
require_relative 'middlewares/event_handler'
require_relative 'middlewares/tracer_middleware'
end

Expand Down

0 comments on commit c53efcf

Please sign in to comment.