yabeda-rb / yabeda-prometheus

Adapter to expose metrics collected by Yabeda plugins to Prometheus
MIT License
113 stars 18 forks source link

Enhance Compatibility with Rack 3 and Maintain Support for Rack 2 #27

Closed aroop closed 10 months ago

aroop commented 10 months ago

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

Envek commented 10 months ago

Thanks, released in 0.9.1