nexus_semantic_logger 1.6.2 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5403708253ceb9cf820c6a8b027d0be275d5cb7e5329229ebfd93e51d4f8725
|
4
|
+
data.tar.gz: 80b06cd16cd31019b72cdf1c15dfbd7a8c3f85760d712b261497b22259681578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d24b87589d0ffedadb335893d8f2d7143e60e492e8e3383aeae3657b77c999347983cae70facaf3b6651d97a9c20704e9d0ff4657f3bbe24df952dd6596890
|
7
|
+
data.tar.gz: cd9e460d524189879e8387582391b567fc052cd7699853f60482589a11a59450102bb2c6120f7bcdad02f610ecab031d423d3b04ccd6d6f98fdfcdb26a58bdc1
|
@@ -37,5 +37,23 @@ module NexusSemanticLogger
|
|
37
37
|
statsd&.timing(metric, ms, tags: global_tags + tags)
|
38
38
|
flush
|
39
39
|
end
|
40
|
+
|
41
|
+
# Delegate to statsd (if available).
|
42
|
+
# @param [String] metric Metric name.
|
43
|
+
# @param [Numeric] value Distribution value.
|
44
|
+
# @param [Array<String>] tags Additional tags.
|
45
|
+
def distribution(metric, value, tags: [])
|
46
|
+
statsd&.distribution(metric, value, tags: global_tags + tags)
|
47
|
+
flush
|
48
|
+
end
|
49
|
+
|
50
|
+
# Delegate to statsd (if available).
|
51
|
+
# @param [String] metric Metric name.
|
52
|
+
# @param [Numeric] value Gauge value.
|
53
|
+
# @param [Array<String>] tags Additional tags.
|
54
|
+
def gauge(metric, value, tags: [])
|
55
|
+
statsd&.gauge(metric, value, tags: global_tags + tags)
|
56
|
+
flush
|
57
|
+
end
|
40
58
|
end
|
41
59
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module NexusSemanticLogger
|
3
|
-
# Leave this as 1.
|
4
|
-
VERSION = '1.
|
3
|
+
# Leave this as 1.7.0 in order for CI process to replace with the tagged version.
|
4
|
+
VERSION = '1.7.0'
|
5
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexus_semantic_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnathon Harris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.3.
|
135
|
+
rubygems_version: 3.3.26
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: semantic_logger usage for nexus
|