opentelemetry-instrumentation-dalli 0.16.0 → 0.19.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: 11628944adb0d370dce3aa9c6263cda3f78abd6796b630d16b152a424009ea9e
4
- data.tar.gz: 2f031bf010ff6e3976c4639d28c634dc8d43e93ff643a55604114418b97140fa
3
+ metadata.gz: cceeeb7c1f582abcb6b3d6677c22f3b40a6ec72e71b4d4586754506d24e5b139
4
+ data.tar.gz: 59c779f3c5177014fe2f2ee94f78f3e37dce8bd77e1d595b99f1334da103710c
5
5
  SHA512:
6
- metadata.gz: 8170f74c96d183c54fe6f750aa7b8c72d85b58d7cbb5e8ada2f3162b84676deef9d8ac30d03aafd3636b24d349f57716a7ab35ee608b13d3d647c52f720a833e
7
- data.tar.gz: 7e371e51890dad4d57009063f14889fd3f4daacac9262323c56e0a89c61b25ad338445fb6a4936dd759d5fe8689cd0047650116e53dcf2a25a768100d9e9855c
6
+ metadata.gz: 0e88fd339959b664fa8078ebca52d19cb37bb1628a71f462726d650e9a23fabf73ac28ec6a7ceec2ca34ac7889e23e5ad91dc9f7f582851fcbeb4e0a09f2f6a3
7
+ data.tar.gz: cf8dc30579dee9238af8c0e4dba61b24784c4512e440b926a9b4bafe508662c7be089af2032049bc9081411ec7ce3601f85162bd645bd8d995eb4c542262cf37
data/CHANGELOG.md CHANGED
@@ -1,13 +1,30 @@
1
1
  # Release History: opentelemetry-instrumentation-dalli
2
2
 
3
+ ### v0.19.0 / 2021-08-12
4
+
5
+ * ADDED: Add configuration options for dalli
6
+ * DOCS: Update docs to rely more on environment variable configuration
7
+
8
+ ### v0.18.1 / 2021-06-23
9
+
10
+ * (No significant changes)
11
+
12
+ ### v0.18.0 / 2021-05-21
13
+
14
+ * ADDED: Updated API depedency for 1.0.0.rc1
15
+
16
+ ### v0.17.0 / 2021-04-22
17
+
18
+ * (No significant changes)
19
+
3
20
  ### v0.16.0 / 2021-03-17
4
21
 
5
- * FIXED: Example scripts now reference local common lib
6
- * DOCS: Replace Gitter with GitHub Discussions
22
+ * FIXED: Example scripts now reference local common lib
23
+ * DOCS: Replace Gitter with GitHub Discussions
7
24
 
8
25
  ### v0.15.0 / 2021-02-18
9
26
 
10
- * ADDED: Add instrumentation config validation
27
+ * ADDED: Add instrumentation config validation
11
28
 
12
29
  ### v0.14.0 / 2021-02-03
13
30
 
@@ -23,9 +40,9 @@
23
40
 
24
41
  ### v0.11.0 / 2020-12-11
25
42
 
26
- * ADDED: Add peer service config to dalli
27
- * ADDED: Move utf8 encoding to common utils
28
- * FIXED: Copyright comments to not reference year
43
+ * ADDED: Add peer service config to dalli
44
+ * ADDED: Move utf8 encoding to common utils
45
+ * FIXED: Copyright comments to not reference year
29
46
 
30
47
  ### v0.10.0 / 2020-12-03
31
48
 
@@ -33,9 +50,9 @@
33
50
 
34
51
  ### v0.9.0 / 2020-11-27
35
52
 
36
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
53
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
37
54
 
38
- * ADDED: Add timeout for force_flush and shutdown
55
+ * ADDED: Add timeout for force_flush and shutdown
39
56
 
40
57
  ### v0.8.0 / 2020-10-27
41
58
 
@@ -43,7 +60,7 @@
43
60
 
44
61
  ### v0.7.0 / 2020-10-07
45
62
 
46
- * DOCS: Standardize toplevel docs structure and readme
63
+ * DOCS: Standardize toplevel docs structure and readme
47
64
 
48
65
  ### v0.6.0 / 2020-09-10
49
66
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  require 'opentelemetry'
8
8
  require 'opentelemetry/common'
9
+ require 'opentelemetry-instrumentation-base'
9
10
 
10
11
  module OpenTelemetry
11
12
  module Instrumentation
@@ -20,6 +20,7 @@ module OpenTelemetry
20
20
  end
21
21
 
22
22
  option :peer_service, default: nil, validate: :string
23
+ option :db_statement, default: :include, validate: ->(opt) { %I[omit include].include?(opt) }
23
24
 
24
25
  private
25
26
 
@@ -14,10 +14,10 @@ module OpenTelemetry
14
14
  operation = Utils.opname(op, multi?)
15
15
  attributes = {
16
16
  'db.system' => 'memcached',
17
- 'db.statement' => Utils.format_command(operation, args),
18
17
  'net.peer.name' => hostname,
19
18
  'net.peer.port' => port
20
19
  }
20
+ attributes['db.statement'] = Utils.format_command(operation, args) if config[:db_statement] == :include
21
21
  attributes['peer.service'] = config[:peer_service] if config[:peer_service]
22
22
  tracer.in_span(operation, attributes: attributes, kind: :client) do
23
23
  super
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Dalli
10
- VERSION = '0.16.0'
10
+ VERSION = '0.19.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-dalli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,28 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 1.0.0.rc3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.16.0
26
+ version: 1.0.0.rc3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.16.0
33
+ version: 0.19.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.16.0
40
+ version: 0.19.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: opentelemetry-instrumentation-base
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.18.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.18.2
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: appraisal
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +114,14 @@ dependencies:
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0.0'
117
+ version: 1.0.0.rc1
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0.0'
124
+ version: 1.0.0.rc1
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -186,10 +200,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
186
200
  licenses:
187
201
  - Apache-2.0
188
202
  metadata:
189
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.16.0/file.CHANGELOG.html
203
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.19.0/file.CHANGELOG.html
190
204
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/dalli
191
205
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
192
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.16.0
206
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.19.0
193
207
  post_install_message:
194
208
  rdoc_options: []
195
209
  require_paths:
@@ -205,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
219
  - !ruby/object:Gem::Version
206
220
  version: '0'
207
221
  requirements: []
208
- rubygems_version: 3.1.4
222
+ rubygems_version: 3.1.6
209
223
  signing_key:
210
224
  specification_version: 4
211
225
  summary: Dalli instrumentation for the OpenTelemetry framework