event_tracer 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/event_tracer/appsignal_logger.rb +3 -2
- data/lib/event_tracer/datadog_logger.rb +3 -2
- data/lib/event_tracer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64dde68b086b57c4b676d62613a5a36be4fa5c754ccb4acd167aa5e69b4247d8
|
4
|
+
data.tar.gz: '083bca3d0a990b4d0ac49a20935c6d160b4880604fdeb48bb050720f1713820f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f56c5bab8b095372ee8dbbe993eb08d9c1692acf7774e3c003abcebb8ac07093eddabb79012c9a6abbb42662da626d4b69ad11221616a6dcebd012c56fb868
|
7
|
+
data.tar.gz: ec619f4d64f70a81371063a0ac3ec2fa6666db0030b3af45b364b01de6664757c9824ac010179eeb3af147eb9b2fbd48acc53a3094926891199613ba31d2826a
|
@@ -43,8 +43,9 @@ module EventTracer
|
|
43
43
|
end
|
44
44
|
when Hash
|
45
45
|
metrics.each do |metric_name, metric_payload|
|
46
|
-
|
47
|
-
|
46
|
+
payload = metric_payload.transform_keys(&:to_sym)
|
47
|
+
metric_type = SUPPORTED_METRIC_TYPES[payload.fetch(:type).to_sym]
|
48
|
+
appsignal.public_send(metric_type, metric_name, payload.fetch(:value), tags) if metric_type
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
@@ -45,8 +45,9 @@ module EventTracer
|
|
45
45
|
end
|
46
46
|
when Hash
|
47
47
|
metrics.each do |metric_name, metric_payload|
|
48
|
-
|
49
|
-
|
48
|
+
payload = metric_payload.transform_keys(&:to_sym)
|
49
|
+
metric_type = SUPPORTED_METRIC_TYPES[payload.fetch(:type).to_sym]
|
50
|
+
datadog.public_send(metric_type, metric_name, payload.fetch(:value), tags: tags) if metric_type
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
data/lib/event_tracer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- melvrickgoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|