Skip to content
Snippets Groups Projects
Commit 73635776 authored by John Harris's avatar John Harris
Browse files

feat: add metrics decrement

parent e53d2534
No related branches found
Tags 1.7.3
No related merge requests found
Pipeline #38076 passed
......@@ -21,6 +21,14 @@ module NexusSemanticLogger
flush
end
# Delegate to statsd (if available).
# @param [String] metric Metric name.
# @param [Array<String>] tags Additional tags.
def decrement(metric, tags: [])
statsd&.decrement(metric, tags: global_tags + tags)
flush
end
# Delegate to statsd (if available).
# @param [String] metric Metric name.
# @param [Integer] ms Timing in milliseconds.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment