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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f13a5619d77a274784538f42abb8121d19f91fc24f4d2def934e9430aa232410
|
4
|
+
data.tar.gz: f281a954af8e3d1e38fc6640ca9ca971ae46b2ea567f80b6d569a4e432fe117f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- melvrickgoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|