opentelemetry-instrumentation-trilogy 0.59.1 → 0.59.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: c58c35f732e1edbc765b0de5afa96c7be76a5d260e110ce8ff40a638a1245cef
|
4
|
+
data.tar.gz: 103b0b742b05ce46e67037ff56015c9bf92e3af53ed08ad4786727faa44bacce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa14fa99c27628dea3e56f07152a51898e97d8e45d0b0b140f2af816d4f03e61a06b2c5f2ba90eae5034f5fcb6a59702790a7894580603a6ba629f995821994
|
7
|
+
data.tar.gz: ed6e2f671f0091ce0ba2ee8b27c68a32728d124103f7e85f6cc42fca08507678b44a16a655ceb8ae661e12090e7a5590f34082d8316bc0fe084f015921b775df
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-trilogy
|
2
2
|
|
3
|
+
### v0.59.3 / 2024-04-30
|
4
|
+
|
5
|
+
* FIXED: Bundler conflict warnings
|
6
|
+
|
7
|
+
### v0.59.2 / 2024-02-20
|
8
|
+
|
9
|
+
* FIXED: Dup string if frozen in trilogy query
|
10
|
+
|
3
11
|
### v0.59.1 / 2024-02-08
|
4
12
|
|
5
13
|
* FIXED: Add missing requires for sql-helpers to mysql, pg, and trilogy instrumentation
|
@@ -7,22 +7,6 @@
|
|
7
7
|
module OpenTelemetry
|
8
8
|
module Instrumentation
|
9
9
|
module Trilogy
|
10
|
-
# @api private
|
11
|
-
class NoopPropagator
|
12
|
-
EMPTY_LIST = [].freeze
|
13
|
-
private_constant(:EMPTY_LIST)
|
14
|
-
|
15
|
-
def inject(carrier, context: Context.current, setter: nil); end
|
16
|
-
|
17
|
-
def extract(carrier, context: Context.current, getter: nil)
|
18
|
-
context
|
19
|
-
end
|
20
|
-
|
21
|
-
def fields
|
22
|
-
EMPTY_LIST
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
10
|
# The Instrumentation class contains logic to detect and install the Trilogy instrumentation
|
27
11
|
class Instrumentation < OpenTelemetry::Instrumentation::Base
|
28
12
|
install do |config|
|
@@ -61,10 +45,9 @@ module OpenTelemetry
|
|
61
45
|
propagator = config[:propagator]
|
62
46
|
@propagator = case propagator
|
63
47
|
when 'vitess' then fetch_propagator(propagator, 'OpenTelemetry::Propagator::Vitess')
|
64
|
-
when 'none', nil then
|
48
|
+
when 'none', nil then nil
|
65
49
|
else
|
66
50
|
OpenTelemetry.logger.warn "The #{propagator} propagator is unknown and cannot be configured"
|
67
|
-
NoopPropagator.new
|
68
51
|
end
|
69
52
|
end
|
70
53
|
|
@@ -50,7 +50,14 @@ module OpenTelemetry
|
|
50
50
|
),
|
51
51
|
kind: :client
|
52
52
|
) do |_span, context|
|
53
|
-
propagator
|
53
|
+
if propagator && sql.frozen?
|
54
|
+
sql = +sql
|
55
|
+
propagator.inject(sql, context: context)
|
56
|
+
sql.freeze
|
57
|
+
elsif propagator
|
58
|
+
propagator.inject(sql, context: context)
|
59
|
+
end
|
60
|
+
|
54
61
|
super(sql)
|
55
62
|
end
|
56
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-trilogy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.59.
|
4
|
+
version: 0.59.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -226,14 +226,14 @@ dependencies:
|
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 1.
|
229
|
+
version: '1.62'
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 1.
|
236
|
+
version: '1.62'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: rubocop-performance
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,26 +262,6 @@ dependencies:
|
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: 0.17.1
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
name: trilogy
|
267
|
-
requirement: !ruby/object:Gem::Requirement
|
268
|
-
requirements:
|
269
|
-
- - ">="
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: '2.0'
|
272
|
-
- - "<"
|
273
|
-
- !ruby/object:Gem::Version
|
274
|
-
version: '3.0'
|
275
|
-
type: :development
|
276
|
-
prerelease: false
|
277
|
-
version_requirements: !ruby/object:Gem::Requirement
|
278
|
-
requirements:
|
279
|
-
- - ">="
|
280
|
-
- !ruby/object:Gem::Version
|
281
|
-
version: '2.0'
|
282
|
-
- - "<"
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
version: '3.0'
|
285
265
|
- !ruby/object:Gem::Dependency
|
286
266
|
name: yard
|
287
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -317,10 +297,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
317
297
|
licenses:
|
318
298
|
- Apache-2.0
|
319
299
|
metadata:
|
320
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.59.
|
300
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.59.3/file/CHANGELOG.md
|
321
301
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/trilogy
|
322
302
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
323
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.59.
|
303
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.59.3
|
324
304
|
post_install_message:
|
325
305
|
rdoc_options: []
|
326
306
|
require_paths:
|