Skip to content

Fix syntax tree errors on main branch #342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/prometheus_exporter/server/puma_collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ class PumaCollector < TypeCollector
max_threads: "Number of puma threads at available at max scale.",
}

if defined?(::Puma::Const) && Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new('6.6.0')
PUMA_GAUGES[:busy_threads] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it"
if defined?(::Puma::Const) &&
Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new("6.6.0")
PUMA_GAUGES[
:busy_threads
] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it"
end

def initialize
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module Const
end

def self.stats
'{}'
"{}"
end
end
end
Expand Down
Loading