Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
increment metric correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Sep 13, 2024
1 parent 8717406 commit c51ad40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module Metrics
def self.increment(metric)
return if Rails.env.local?
::NewRelic::Agent.increment_metric("Custom/Registration/#{metric}")
::NewRelic::Agent.increment_metric("Custom/Registration/#{metric}", 1)
end
end

0 comments on commit c51ad40

Please sign in to comment.