opentelemetry-instrumentation-dalli 0.11.0 → 0.16.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: 0c1e6b393e01abad1680a4de749c939d8b5228e1aa76fa9936a95bf5f3e0efa9
4
- data.tar.gz: 382ec5392b8632542d468279433d35b052f3f98f6d000e9e0679d11bb6b0e565
3
+ metadata.gz: 11628944adb0d370dce3aa9c6263cda3f78abd6796b630d16b152a424009ea9e
4
+ data.tar.gz: 2f031bf010ff6e3976c4639d28c634dc8d43e93ff643a55604114418b97140fa
5
5
  SHA512:
6
- metadata.gz: cbf8f03e88623049092b6aa331f64fc930bc3053aa3903c7f8b72f2bde63973954f9794f29ad3a06feea741d325cfd82345389c302522e89ff92d9219b6bb433
7
- data.tar.gz: 931bf3b79f4a4313f58a4ec533fb7f9536218c730947add8dcd059987f3c57ff3d7bc32694b5e9f9af41769d94e449830e1f85ebce64178f74d55378ea4c7309
6
+ metadata.gz: 8170f74c96d183c54fe6f750aa7b8c72d85b58d7cbb5e8ada2f3162b84676deef9d8ac30d03aafd3636b24d349f57716a7ab35ee608b13d3d647c52f720a833e
7
+ data.tar.gz: 7e371e51890dad4d57009063f14889fd3f4daacac9262323c56e0a89c61b25ad338445fb6a4936dd759d5fe8689cd0047650116e53dcf2a25a768100d9e9855c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release History: opentelemetry-instrumentation-dalli
2
2
 
3
+ ### v0.16.0 / 2021-03-17
4
+
5
+ * FIXED: Example scripts now reference local common lib
6
+ * DOCS: Replace Gitter with GitHub Discussions
7
+
8
+ ### v0.15.0 / 2021-02-18
9
+
10
+ * ADDED: Add instrumentation config validation
11
+
12
+ ### v0.14.0 / 2021-02-03
13
+
14
+ * (No significant changes)
15
+
16
+ ### v0.13.0 / 2021-01-29
17
+
18
+ * (No significant changes)
19
+
20
+ ### v0.12.0 / 2020-12-24
21
+
22
+ * (No significant changes)
23
+
3
24
  ### v0.11.0 / 2020-12-11
4
25
 
5
26
  * ADDED: Add peer service config to dalli
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
 
@@ -43,7 +43,7 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
43
43
  [dalli-home]: https://github.com/petergoldstein/dalli
44
44
  [bundler-home]: https://bundler.io
45
45
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
46
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
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
@@ -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.11.0'
10
+ VERSION = '0.16.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.11.0
4
+ version: 0.16.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: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.16.0
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.11.0
26
+ version: 0.16.0
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.11.0
33
+ version: 0.16.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.11.0
40
+ version: 0.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -186,10 +186,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
186
186
  licenses:
187
187
  - Apache-2.0
188
188
  metadata:
189
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.11.0/file.CHANGELOG.html
190
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/dalli
189
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.16.0/file.CHANGELOG.html
190
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/dalli
191
191
  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.11.0
192
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-dalli/v0.16.0
193
193
  post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths: