event_tracer 0.4.2 → 0.4.3

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: c33ea83663eda9d96f8055d957ab688d6be6f957023ea689b5f119abedfb7ad8
4
- data.tar.gz: f6f328085fdc3de07dafa12e27bac3752b18249bcd5bbd3cd81046222c853f19
3
+ metadata.gz: f13a5619d77a274784538f42abb8121d19f91fc24f4d2def934e9430aa232410
4
+ data.tar.gz: f281a954af8e3d1e38fc6640ca9ca971ae46b2ea567f80b6d569a4e432fe117f
5
5
  SHA512:
6
- metadata.gz: 49bf70ea7a94f1a88410b8b014c77763fd4f9f581503fb48500c07e02000db3325c3b113baa1df5f733b1326e02e28441137512972f8e1b8c07a0917f662c59c
7
- data.tar.gz: 70a852a9f2de92aa90ce63381ac7b63252d0f889b9f0bf34eb51d4d43e4e9740b5532029571992150ebb50dae035fb1a9a5b12383c3e48eaeb25c15045cffcb5
6
+ metadata.gz: f24211641d5b8f3ae7e6006122b2f8dc3af0403249e8149dcc64caf479d07cf6b7d96aae8ae7295a048935c1a9b38fa769a2f1ea6cdce2243f8a0bb7bea90cbe
7
+ data.tar.gz: c5c85f05628fbeb39878f2ba9dd04a87fb0d02f284f09b827cedf69454154d7a8db0d3d224d85456d01c4152f28d661bf4d5eda7ec9d943ed2d756e38611cf6f
@@ -1,4 +1,3 @@
1
- require_relative '../event_tracer'
2
1
  require_relative './basic_decorator'
3
2
 
4
3
  # NOTES
@@ -21,9 +20,11 @@ module EventTracer
21
20
  DEFAULT_METRIC_TYPE = :increment_counter
22
21
  DEFAULT_COUNTER = 1
23
22
 
23
+ attr_reader :allowed_tags
24
+
24
25
  def initialize(decoratee, allowed_tags: [])
25
26
  super(decoratee)
26
- @allowed_tags = allowed_tags
27
+ @allowed_tags = allowed_tags.freeze
27
28
  end
28
29
 
29
30
  LOG_TYPES.each do |log_type|
@@ -53,7 +54,6 @@ module EventTracer
53
54
 
54
55
  private
55
56
 
56
- attr_reader :decoratee, :allowed_tags
57
57
  alias_method :appsignal, :decoratee
58
58
 
59
59
  def valid_args?(metrics)
@@ -1,4 +1,3 @@
1
- require_relative '../event_tracer'
2
1
  require_relative './basic_decorator'
3
2
  require 'json'
4
3
 
@@ -15,7 +14,6 @@ module EventTracer
15
14
 
16
15
  private
17
16
 
18
- attr_reader :logger, :decoratee
19
17
  alias_method :logger, :decoratee
20
18
 
21
19
  # EventTracer ensures action & message is always populated
@@ -24,5 +24,8 @@ module EventTracer
24
24
  LogResult.new(false, message)
25
25
  end
26
26
 
27
+ private
28
+
29
+ attr_reader :decoratee
27
30
  end
28
31
  end
@@ -1,4 +1,3 @@
1
- require_relative '../event_tracer'
2
1
  require_relative './basic_decorator'
3
2
  # NOTES
4
3
  # Datadog interface to send our usual actions
@@ -23,9 +22,11 @@ module EventTracer
23
22
  DEFAULT_METRIC_TYPE = :count
24
23
  DEFAULT_COUNTER = 1
25
24
 
25
+ attr_reader :allowed_tags
26
+
26
27
  def initialize(decoratee, allowed_tags: [])
27
28
  super(decoratee)
28
- @allowed_tags = allowed_tags
29
+ @allowed_tags = allowed_tags.freeze
29
30
  end
30
31
 
31
32
  LOG_TYPES.each do |log_type|
@@ -55,7 +56,6 @@ module EventTracer
55
56
 
56
57
  private
57
58
 
58
- attr_reader :decoratee, :allowed_tags
59
59
  alias_method :datadog, :decoratee
60
60
 
61
61
  def valid_args?(metrics)
@@ -1,3 +1,3 @@
1
1
  module EventTracer
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.3'.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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - melvrickgoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-20 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby