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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db21e7db07d318ce6c78448f6e7ce6ae8819c89456708c9eac9b44dddde547b1
4
- data.tar.gz: dcc79806b5e10f6f34ebd19c8a77bdfcae27bb3c7b064811196b9617c4d3c0b8
3
+ metadata.gz: 64dde68b086b57c4b676d62613a5a36be4fa5c754ccb4acd167aa5e69b4247d8
4
+ data.tar.gz: '083bca3d0a990b4d0ac49a20935c6d160b4880604fdeb48bb050720f1713820f'
5
5
  SHA512:
6
- metadata.gz: 6ab07f8de34b3c499a4b3b16c3d1e3895b4776dcca97e34a701d68bbdb1654312f7803d78e2d2c9e69a2a8173b8087e613749231de6eed1762eb24f6c6029220
7
- data.tar.gz: 37ef3ac7ded60e1c4d1ebe75e00e3a76b9ae2230f7eeba4b8961be96054bc5e54b2cc4b6a0e7224e30e232b7e27f80e3bcc88d308c0c0f1dafc244fb4082f073
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
- metric_type = SUPPORTED_METRIC_TYPES[metric_payload.fetch(:type).to_sym]
47
- appsignal.public_send(metric_type, metric_name, metric_payload.fetch(:value), tags) if metric_type
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
- metric_type = SUPPORTED_METRIC_TYPES[metric_payload.fetch(:type).to_sym]
49
- datadog.public_send(metric_type, metric_name, metric_payload.fetch(:value), tags: tags) if metric_type
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
 
@@ -1,3 +1,3 @@
1
1
  module EventTracer
2
- VERSION = '0.4.5'.freeze
2
+ VERSION = '0.4.6'.freeze
3
3
  end
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.5
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-22 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby