opentelemetry-instrumentation-dalli 0.22.0 → 0.22.2
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: 4abbfb13ab0700bed0ee362d261838dae06c8ad538f9d73a0326e52de09b8e1f
|
4
|
+
data.tar.gz: 1bd298ade964d958248b6c927ad8fdde0c6b59fa315a8aef71b5f1446728889d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97469e1de7498fd743a25d12f42bdaaebf20394949706b86c0dce1041bf9cbbac25e8625aa70fd82e176ac5978bd5401a816a70267dc4eb2419c45248ad90cee
|
7
|
+
data.tar.gz: e647ef9114d2b6d4bd2e03f900c6fcd85916648d9ed16adb267cf1833fd93a4bb147595b9bb9b69de98b37b31eae0a7cf3d9be40eb1a1e40e539978005e2eb80
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-dalli
|
2
2
|
|
3
|
+
### v0.22.2 / 2023-01-14
|
4
|
+
|
5
|
+
* DOCS: Fix gem homepage
|
6
|
+
* DOCS: More gem documentation fixes
|
7
|
+
|
8
|
+
### v0.22.1 / 2022-11-28
|
9
|
+
|
10
|
+
* FIXED: `format_command`'s terrible performance
|
11
|
+
|
3
12
|
### v0.22.0 / 2022-06-09
|
4
13
|
|
5
14
|
* Upgrading Base dependency version
|
data/README.md
CHANGED
@@ -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/main/LICENSE
|
46
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/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
49
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -10,7 +10,7 @@ module OpenTelemetry
|
|
10
10
|
module Patches
|
11
11
|
# Module to prepend to Dalli::Server (or Dalli::Protocol::Binary in 3.0+) for instrumentation
|
12
12
|
module Server
|
13
|
-
def request(op, *args)
|
13
|
+
def request(op, *args) # rubocop:disable Naming/MethodParameterName
|
14
14
|
operation = Utils.opname(op, multi?)
|
15
15
|
attributes = {
|
16
16
|
'db.system' => 'memcached',
|
@@ -53,7 +53,17 @@ module OpenTelemetry
|
|
53
53
|
|
54
54
|
def format_command(operation, args)
|
55
55
|
placeholder = "#{operation} BLOB (OMITTED)"
|
56
|
-
|
56
|
+
|
57
|
+
command = +operation.to_s
|
58
|
+
args.flatten.each do |arg|
|
59
|
+
str = arg.to_s
|
60
|
+
if str.bytesize >= CMD_MAX_LEN
|
61
|
+
command << ' BLOB (OMITTED)'
|
62
|
+
elsif !str.empty?
|
63
|
+
command << ' ' << str
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
57
67
|
command = OpenTelemetry::Common::Utilities.utf8_encode(command, binary: true, placeholder: placeholder)
|
58
68
|
OpenTelemetry::Common::Utilities.truncate(command, CMD_MAX_LEN)
|
59
69
|
rescue StandardError => e
|
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.22.
|
4
|
+
version: 0.22.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.4'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: dalli
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.41.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.41.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,14 +210,14 @@ files:
|
|
210
210
|
- lib/opentelemetry/instrumentation/dalli/patches/server.rb
|
211
211
|
- lib/opentelemetry/instrumentation/dalli/utils.rb
|
212
212
|
- lib/opentelemetry/instrumentation/dalli/version.rb
|
213
|
-
homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
213
|
+
homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
214
214
|
licenses:
|
215
215
|
- Apache-2.0
|
216
216
|
metadata:
|
217
|
-
changelog_uri: https://
|
218
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/dalli
|
219
|
-
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
220
|
-
documentation_uri: https://
|
217
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-dalli/0.22.2/file/CHANGELOG.md
|
218
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/dalli
|
219
|
+
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
220
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-dalli/0.22.2
|
221
221
|
post_install_message:
|
222
222
|
rdoc_options: []
|
223
223
|
require_paths:
|