Skip to content

Commit

Permalink
Update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
grobie committed Jun 18, 2014
1 parent c676e45 commit 7495de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RSpec::Core::RakeTask.new do |t|
end

desc 'Lint code'
Rubocop::RakeTask.new
RuboCop::RakeTask.new

Bundler::GemHelper.install_tasks
6 changes: 3 additions & 3 deletions lib/prometheus/client/rack/collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ def call(env) # :nodoc:
def init_request_metrics
@requests = @registry.counter(
:http_requests_total,
'A counter of the total number of HTTP requests made.',)
'A counter of the total number of HTTP requests made.')
@requests_duration = @registry.counter(
:http_request_durations_total_microseconds,
'The total amount of time spent answering HTTP requests ' \
'(microseconds).',)
@durations = @registry.summary(
:http_request_durations_microseconds,
'A histogram of the response latency (microseconds).',)
'A histogram of the response latency (microseconds).')
end

def init_exception_metrics
@exceptions = @registry.counter(
:http_exceptions_total,
'A counter of the total number of exceptions raised.',)
'A counter of the total number of exceptions raised.')
end

def trace(env)
Expand Down

0 comments on commit 7495de7

Please sign in to comment.