opentelemetry-instrumentation-dalli 0.13.0 → 0.18.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: 05477eea1be6a3ff18cc931f344e01cdd445c006fca9e1d9a9053a1b431bb2fd
4
- data.tar.gz: 247ff441729668f7b4d722934990c4bd1e71c5f5555beb267e1a5c04c555c83d
3
+ metadata.gz: fc373de2a9cab3d47d10d0f40a1f17824184c6fca5ce2a5ee7bb87b2cb54efb3
4
+ data.tar.gz: 86d761b7df0f8b31d249403d116f1fe3cf7c75f572e694815345a5f1f4078210
5
5
  SHA512:
6
- metadata.gz: 5074d1e62e6798dd08b14a7999d5316583cd33ed72b9dfbba1bdde5c82434083c729fcd9854b21b711da76284876092d060f9b7f9a547a23f865ba227f71c813
7
- data.tar.gz: 56ad70d9a52edd2d205529dfefceb20a518de5ef51663d26c15281a6520f54528ee63a2a83d8b06d90099a463d1c5707a3a239ad9a2b941a8e74eb9696e44d47
6
+ metadata.gz: 5dd7b3925ba41e26187bba4bf2dab80052100d03b6e6bc2a2e820cc11f08404b69a30cb581df5d2c12a60d44d8e4860d1eb89de4de5d890655b2c397c7bbfae5
7
+ data.tar.gz: 7b3330a939a43744928280b55980e013116579edd1d7a2c84461aae6744b806466e5e11fd58c09c97d068bb122b0fcf436be8676abaa6ba55e35a2b6922d2bc3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release History: opentelemetry-instrumentation-dalli
2
2
 
3
+ ### v0.18.0 / 2021-05-21
4
+
5
+ * ADDED: Updated API depedency for 1.0.0.rc1
6
+
7
+ ### v0.17.0 / 2021-04-22
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.16.0 / 2021-03-17
12
+
13
+ * FIXED: Example scripts now reference local common lib
14
+ * DOCS: Replace Gitter with GitHub Discussions
15
+
16
+ ### v0.15.0 / 2021-02-18
17
+
18
+ * ADDED: Add instrumentation config validation
19
+
20
+ ### v0.14.0 / 2021-02-03
21
+
22
+ * (No significant changes)
23
+
3
24
  ### v0.13.0 / 2021-01-29
4
25
 
5
26
  * (No significant changes)
@@ -10,9 +31,9 @@
10
31
 
11
32
  ### v0.11.0 / 2020-12-11
12
33
 
13
- * ADDED: Add peer service config to dalli
14
- * ADDED: Move utf8 encoding to common utils
15
- * FIXED: Copyright comments to not reference year
34
+ * ADDED: Add peer service config to dalli
35
+ * ADDED: Move utf8 encoding to common utils
36
+ * FIXED: Copyright comments to not reference year
16
37
 
17
38
  ### v0.10.0 / 2020-12-03
18
39
 
@@ -20,9 +41,9 @@
20
41
 
21
42
  ### v0.9.0 / 2020-11-27
22
43
 
23
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
44
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
24
45
 
25
- * ADDED: Add timeout for force_flush and shutdown
46
+ * ADDED: Add timeout for force_flush and shutdown
26
47
 
27
48
  ### v0.8.0 / 2020-10-27
28
49
 
@@ -30,7 +51,7 @@
30
51
 
31
52
  ### v0.7.0 / 2020-10-07
32
53
 
33
- * DOCS: Standardize toplevel docs structure and readme
54
+ * DOCS: Standardize toplevel docs structure and readme
34
55
 
35
56
  ### v0.6.0 / 2020-09-10
36
57
 
data/README.md CHANGED
@@ -34,7 +34,7 @@ end
34
34
 
35
35
  The `opentelemetry-instrumentation-dalli` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
36
36
 
37
- The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us on our [gitter channel][ruby-gitter] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
37
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
38
38
 
39
39
  ## License
40
40
 
@@ -46,4 +46,4 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
46
46
  [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
47
47
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
48
48
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
49
- [ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
49
+ [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -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
@@ -19,6 +19,8 @@ module OpenTelemetry
19
19
  defined?(::Dalli)
20
20
  end
21
21
 
22
+ option :peer_service, default: nil, validate: :string
23
+
22
24
  private
23
25
 
24
26
  def require_dependencies
@@ -48,15 +48,11 @@ module OpenTelemetry
48
48
  placeholder = "#{operation} BLOB (OMITTED)"
49
49
  command = [operation, *args].join(' ').strip
50
50
  command = OpenTelemetry::Common::Utilities.utf8_encode(command, binary: true, placeholder: placeholder)
51
- truncate(command, CMD_MAX_LEN)
51
+ OpenTelemetry::Common::Utilities.truncate(command, CMD_MAX_LEN)
52
52
  rescue StandardError => e
53
53
  OpenTelemetry.logger.debug("Error sanitizing Dalli operation: #{e}")
54
54
  placeholder
55
55
  end
56
-
57
- def truncate(string, size)
58
- string.size > size ? "#{string[0...size - 3]}..." : string
59
- end
60
56
  end
61
57
  end
62
58
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Dalli
10
- VERSION = '0.13.0'
10
+ VERSION = '0.18.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.13.0
4
+ version: 0.18.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-01-30 00:00:00.000000000 Z
11
+ date: 2021-05-21 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.13.0
19
+ version: 1.0.0.rc1
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.13.0
26
+ version: 1.0.0.rc1
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.13.0
33
+ version: 0.18.0
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.13.0
40
+ version: 0.18.0
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.0
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.0
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.13.0/file.CHANGELOG.html
203
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.18.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.13.0
206
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.18.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