Open
Description
The nightly build for queue started failing with what seems to be incompatibilities with newer versions of Rails.
cc: @indrekj as the current maintainer of the que instrumentation.
1) Error:
OpenTelemetry::Instrumentation::Que::span propagation::when propagation_style is set to link#test_0003_links spans together:
NoMethodError: undefined method `clear_active_connections!' for class ActiveRecord::Base
/opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/activerecord-7.2.0/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/que-1.4.0/lib/que/active_record/connection.rb:45:in `call'
/opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/que-1.4.0/lib/que/utils/middleware.rb:36:in `invoke_middleware'
(eval at /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/que-1.4.0/lib/que/utils/middleware.rb:14):11:in `run_job_middleware'
test/opentelemetry/instrumentation/que_test.rb:[170](https://github.com/open-telemetry/opentelemetry-ruby-contrib/actions/runs/10335505991/job/28610140236#step:4:181):in `block (4 levels) in <top (required)>'