test/tracing/opentracing_test.rb in instana-1.209.2 vs test/tracing/opentracing_test.rb in instana-1.209.3

- old
+ new

@@ -1,11 +1,17 @@ # (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2017 require 'test_helper' require 'rack/test' -require 'rack/lobster' + +if Rack.release >= '3.0.0' + require 'rackup/lobster' +else + require 'rack/lobster' +end + require "opentracing" module Instana class OTRack1 def initialize(app) @@ -43,10 +49,14 @@ use Instana::OTRack1 use Rack::CommonLogger use Rack::ShowExceptions use Instana::OTRack2 map "/mrlobster" do - run Rack::Lobster.new + if Rack.release >= '3.0.0' + run Rackup::Lobster.new + else + run Rack::Lobster.new + end end } end def test_supplies_all_ot_interfaces