This PR introduces changes to the Yabeda::Prometheus::Mmap::Exporter class to ensure compatibility with both Rack 2 and Rack 3. It addresses the issue where Rack 3 moved WEBrick related code to a separate gem (rackup), which requires conditional handling based on the Rack version being used.
This PR introduces changes to the Yabeda::Prometheus::Mmap::Exporter class to ensure compatibility with both Rack 2 and Rack 3. It addresses the issue where Rack 3 moved WEBrick related code to a separate gem (rackup), which requires conditional handling based on the Rack version being used.
This is similar to https://github.com/yabeda-rb/yabeda-prometheus-mmap/pull/8