opentelemetry-instrumentation-active_record 0.7.4 → 0.8.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: 46f36a9998d7174b196a3bbc46c1b9c8d72e3aa594aebccd6f8052f134eeece2
4
- data.tar.gz: 226b218eb33118b707fb2bd623a72dc10411212600d6bee038cc6da39da9e8ad
3
+ metadata.gz: 22ba7ba7bbac7675f61b490c737efe0cf694f9ae6445f4ec4489ebbea9fe3be2
4
+ data.tar.gz: 234893fc8668f3f5391c17b0061d8a6a007c6b47a10e86e03e56735a7c4bed27
5
5
  SHA512:
6
- metadata.gz: 9e5ffff33914202650b7cbe8eaf0674b096ca52681e0872b9e1cd30597e285929fc446853c088f9bd2179b263f55ac27d7b1c4ac07aca8a831985d239e568307
7
- data.tar.gz: 15f31cebcd7c3619b7ebaa7f9e2b7efd0cab6ab85249f381607e09836853c9ff75bf7233b9bf25cd3fa3a18e573b144588ec4dc7cb133dd6acb333da0c394d8f
6
+ metadata.gz: 85884d150ef6c96c1b831408d83c024db89f2682531f573f64deef4c17e1f5c79ee52d5a3f717d79434f53abcadcc61779e1aa00b2e28f1afa826f731be7c527
7
+ data.tar.gz: 5c726a1fa9525a5c950b0ac50918f99acd4c2ab55b7289f5abd8af91127f237e07e1183bbf6f623e557d8710a721c44a300f0a248c49a99621ada36bd4ef7486
data/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-active_record
2
2
 
3
+ ### v0.8.0 / 2024-10-22
4
+
5
+ * BREAKING CHANGE: Rename Active Record find_by_sql spans to query
6
+ * FIXED: Emit Active Record query spans for Rails 7.0+
7
+
3
8
  ### v0.7.4 / 2024-08-19
4
9
 
5
- * FIXED: Use ActiveSupport from top-level namespace (NoMethodError on_load)
10
+ * FIXED: Use ActiveSupport from top-level namespace (NoMethodError on_load)
6
11
 
7
12
  ### v0.7.3 / 2024-08-15
8
13
 
@@ -32,38 +37,38 @@
32
37
 
33
38
  ### v0.6.1 / 2023-06-05
34
39
 
35
- * FIXED: Base config options
40
+ * FIXED: Base config options
36
41
 
37
42
  ### v0.6.0 / 2023-04-17
38
43
 
39
- * BREAKING CHANGE: Drop support for EoL Ruby 2.7
44
+ * BREAKING CHANGE: Drop support for EoL Ruby 2.7
40
45
 
41
- * ADDED: Drop support for EoL Ruby 2.7
46
+ * ADDED: Drop support for EoL Ruby 2.7
42
47
 
43
48
  ### v0.5.0 / 2023-02-01
44
49
 
45
- * BREAKING CHANGE: Drop Rails 5 Support
50
+ * BREAKING CHANGE: Drop Rails 5 Support
46
51
 
47
- * ADDED: Drop Rails 5 Support
52
+ * ADDED: Drop Rails 5 Support
48
53
 
49
54
  ### v0.4.1 / 2023-01-14
50
55
 
51
- * DOCS: Fix gem homepage
52
- * DOCS: More gem documentation fixes
56
+ * DOCS: Fix gem homepage
57
+ * DOCS: More gem documentation fixes
53
58
 
54
59
  ### v0.4.0 / 2022-06-09
55
60
 
56
61
  * Upgrading Base dependency version
57
- * FIXED: Broken test file requirements
62
+ * FIXED: Broken test file requirements
58
63
 
59
64
  ### v0.3.0 / 2022-05-02
60
65
 
61
- * ADDED: Make ActiveRecord 7 compatible
62
- * FIXED: RubyGems Fallback
66
+ * ADDED: Make ActiveRecord 7 compatible
67
+ * FIXED: RubyGems Fallback
63
68
 
64
69
  ### v0.2.2 / 2021-12-01
65
70
 
66
- * FIXED: Add max supported version for active record
71
+ * FIXED: Add max supported version for active record
67
72
 
68
73
  ### v0.2.1 / 2021-09-29
69
74
 
@@ -71,8 +76,8 @@
71
76
 
72
77
  ### v0.2.0 / 2021-09-29
73
78
 
74
- * ADDED: Trace update_all and delete_all calls in ActiveRecord
75
- * FIXED: Remove Active Record instantiation patch
79
+ * ADDED: Trace update_all and delete_all calls in ActiveRecord
80
+ * FIXED: Remove Active Record instantiation patch
76
81
 
77
82
  ### v0.1.1 / 2021-08-12
78
83
 
@@ -18,9 +18,11 @@ module OpenTelemetry
18
18
 
19
19
  # Contains ActiveRecord::Querying to be patched
20
20
  module ClassMethods
21
- def find_by_sql(...)
22
- tracer.in_span("#{self}.find_by_sql") do
23
- super
21
+ method_name = ::ActiveRecord.version >= Gem::Version.new('7.0.0') ? :_query_by_sql : :find_by_sql
22
+
23
+ define_method(method_name) do |*args, **kwargs|
24
+ tracer.in_span("#{self} query") do
25
+ super(*args, **kwargs)
24
26
  end
25
27
  end
26
28
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveRecord
10
- VERSION = '0.7.4'
10
+ VERSION = '0.8.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.7.4
4
+ version: 0.8.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: 2024-08-19 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.65.0
145
+ version: 1.66.0
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: 1.65.0
152
+ version: 1.66.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop-performance
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.20'
159
+ version: 1.22.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.20'
166
+ version: 1.22.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '3.19'
187
+ version: 3.24.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '3.19'
194
+ version: 3.24.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: yard
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -233,10 +233,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
233
233
  licenses:
234
234
  - Apache-2.0
235
235
  metadata:
236
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.7.4/file/CHANGELOG.md
236
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.8.0/file/CHANGELOG.md
237
237
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_record
238
238
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
239
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.7.4
239
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.8.0
240
240
  post_install_message:
241
241
  rdoc_options: []
242
242
  require_paths: