opentelemetry-instrumentation-active_record 0.8.0 → 0.9.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: 22ba7ba7bbac7675f61b490c737efe0cf694f9ae6445f4ec4489ebbea9fe3be2
4
- data.tar.gz: 234893fc8668f3f5391c17b0061d8a6a007c6b47a10e86e03e56735a7c4bed27
3
+ metadata.gz: aec64fdf7e91b7157f92443f49767e1880cc1a9a5a9204846ca978bab42cb3c3
4
+ data.tar.gz: a8a21d3e215e50f0d87641d8d8092b8fa7f384a4e17aa3864a9b78f2839c6089
5
5
  SHA512:
6
- metadata.gz: 85884d150ef6c96c1b831408d83c024db89f2682531f573f64deef4c17e1f5c79ee52d5a3f717d79434f53abcadcc61779e1aa00b2e28f1afa826f731be7c527
7
- data.tar.gz: 5c726a1fa9525a5c950b0ac50918f99acd4c2ab55b7289f5abd8af91127f237e07e1183bbf6f623e557d8710a721c44a300f0a248c49a99621ada36bd4ef7486
6
+ metadata.gz: 1d5eb39173f0562992d523eb6d2c71ce67a719b3d6b56a6d27403fa4d5123a16eb07f4247eea104e84cc44f64dc8feb96d27eea15ccd2166bb6d119874278f92
7
+ data.tar.gz: 49975551a68a95c9e2f7c74165a73a0eeae428c2f0ac2b04f8d182e512983738b5a0d211283849279c7deccf2d91d48e75874578de5d6676cc22a5ad27dc79ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History: opentelemetry-instrumentation-active_record
2
2
 
3
+ ### v0.9.0 / 2025-01-16
4
+
5
+ * BREAKING CHANGE: Drop Support for EoL Rails 6.1
6
+ * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
7
+
8
+ * ADDED: Drop Support for EoL Rails 6.1
9
+ * ADDED: Set minimum supported version to Ruby 3.1
10
+
11
+ ### v0.8.1 / 2024-11-21
12
+
13
+ * FIXED: Pass block argument in ActiveRecord `find_by_sql` patch.
14
+
3
15
  ### v0.8.0 / 2024-10-22
4
16
 
5
17
  * BREAKING CHANGE: Rename Active Record find_by_sql spans to query
@@ -9,7 +9,7 @@ module OpenTelemetry
9
9
  module ActiveRecord
10
10
  # The Instrumentation class contains logic to detect and install the ActiveRecord instrumentation
11
11
  class Instrumentation < OpenTelemetry::Instrumentation::Base
12
- MINIMUM_VERSION = Gem::Version.new('6.1.0')
12
+ MINIMUM_VERSION = Gem::Version.new('7')
13
13
 
14
14
  install do |_config|
15
15
  require_dependencies
@@ -45,7 +45,7 @@ module OpenTelemetry
45
45
  ::ActiveSupport.on_load(:active_record) do
46
46
  # Modules to prepend to ActiveRecord::Base are grouped by the source
47
47
  # module that they are defined in as they are included into ActiveRecord::Base
48
- # Example: Patches::PersistenceClassMethods refers to https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/persistence.rb#L10
48
+ # Example: Patches::PersistenceClassMethods refers to https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/persistence.rb#L10
49
49
  # which is included into ActiveRecord::Base in https://github.com/rails/rails/blob/914caca2d31bd753f47f9168f2a375921d9e91cc/activerecord/lib/active_record/base.rb#L283
50
50
  ::ActiveRecord::Base.prepend(Patches::Querying)
51
51
  ::ActiveRecord::Base.prepend(Patches::Persistence)
@@ -20,9 +20,9 @@ module OpenTelemetry
20
20
  module ClassMethods
21
21
  method_name = ::ActiveRecord.version >= Gem::Version.new('7.0.0') ? :_query_by_sql : :find_by_sql
22
22
 
23
- define_method(method_name) do |*args, **kwargs|
23
+ define_method(method_name) do |*args, **kwargs, &block|
24
24
  tracer.in_span("#{self} query") do
25
- super(*args, **kwargs)
25
+ super(*args, **kwargs, &block)
26
26
  end
27
27
  end
28
28
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveRecord
10
- VERSION = '0.8.0'
10
+ VERSION = '0.9.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-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-23 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,28 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.1
33
+ version: 0.23.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.22.1
41
- - !ruby/object:Gem::Dependency
42
- name: activerecord
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '6.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '6.1'
40
+ version: 0.23.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: appraisal
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +128,28 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.66.0
131
+ version: 1.69.1
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.66.0
138
+ version: 1.69.1
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rubocop-performance
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 1.22.0
145
+ version: 1.23.0
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 1.22.0
152
+ version: 1.23.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: simplecov
169
155
  requirement: !ruby/object:Gem::Requirement
@@ -233,11 +219,11 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
233
219
  licenses:
234
220
  - Apache-2.0
235
221
  metadata:
236
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.8.0/file/CHANGELOG.md
222
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.9.0/file/CHANGELOG.md
237
223
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_record
238
224
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
239
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.8.0
240
- post_install_message:
225
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.9.0
226
+ post_install_message:
241
227
  rdoc_options: []
242
228
  require_paths:
243
229
  - lib
@@ -245,15 +231,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
231
  requirements:
246
232
  - - ">="
247
233
  - !ruby/object:Gem::Version
248
- version: '3.0'
234
+ version: '3.1'
249
235
  required_rubygems_version: !ruby/object:Gem::Requirement
250
236
  requirements:
251
237
  - - ">="
252
238
  - !ruby/object:Gem::Version
253
239
  version: '0'
254
240
  requirements: []
255
- rubygems_version: 3.2.33
256
- signing_key:
241
+ rubygems_version: 3.3.27
242
+ signing_key:
257
243
  specification_version: 4
258
244
  summary: ActiveRecord instrumentation for the OpenTelemetry framework
259
245
  test_files: []