opentelemetry-instrumentation-active_record 0.4.1 → 0.5.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: 37f4fb7eeaaca0670018953e95c7adda332c054a475f81abc077614e60d0ea3c
4
- data.tar.gz: 3f800d150d84a5aa395eae5c76904f88c676097e2196718380c116658c33afd2
3
+ metadata.gz: fd46d42e09e6febb6b090f31b3f05560500493ef04ba51b8e71eacb987a4f30e
4
+ data.tar.gz: c8628c9a05565c361c8e6c6347043f507c5131a876136f01a7e4dca3abfdea6b
5
5
  SHA512:
6
- metadata.gz: 65a98ff20d2bd29650bc169b8a5f9101b6402c8a3eab7263e0e0e499d1678d1ed9d1fba424866b9e91086108d8f4f35ca2f1de7ff251e30fa457bf836d5d94a1
7
- data.tar.gz: baa681c95c3606039f6be33d13fb099b622b4d564237a8af41e268c1d57bb6c689a3558c679a1f40e090b35f1a53fc3c7e38b0ff183d7c20ed6cb78eb4e9cd66
6
+ metadata.gz: b52ff4986c9fae1b7b1de70667f6fe85c162e2c9bf2c07d25e088ab2e3de9481273a987db8bb2747a9d8317c18bf0c028d794d926d53d9fc91f2da4b1fa3eca6
7
+ data.tar.gz: c17afb89ee2b2cc8bd31f72a2f24bd3899a145a99a6037cede6f9ef4b25f4e5a4e397ce50577281fb674d502c702d77339f1cdb1d7f13611ea172b45fddd87f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History: opentelemetry-instrumentation-active_record
2
2
 
3
+ ### v0.5.0 / 2023-02-01
4
+
5
+ * BREAKING CHANGE: Drop Rails 5 Support
6
+
7
+ * ADDED: Drop Rails 5 Support
8
+
3
9
  ### v0.4.1 / 2023-01-14
4
10
 
5
11
  * DOCS: Fix gem homepage
@@ -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('5.2.0')
12
+ MINIMUM_VERSION = Gem::Version.new('6.0.0')
13
13
  MAX_MAJOR_VERSION = 7
14
14
 
15
15
  install do |_config|
@@ -31,10 +31,6 @@ module OpenTelemetry
31
31
 
32
32
  private
33
33
 
34
- def insert_class_methods_supported?
35
- gem_version >= Gem::Version.new('6.0.0')
36
- end
37
-
38
34
  def gem_version
39
35
  ::ActiveRecord.version
40
36
  end
@@ -52,7 +48,7 @@ module OpenTelemetry
52
48
  ::ActiveRecord::Base.prepend(Patches::Querying)
53
49
  ::ActiveRecord::Base.prepend(Patches::Persistence)
54
50
  ::ActiveRecord::Base.prepend(Patches::PersistenceClassMethods)
55
- ::ActiveRecord::Base.prepend(Patches::PersistenceInsertClassMethods) if insert_class_methods_supported?
51
+ ::ActiveRecord::Base.prepend(Patches::PersistenceInsertClassMethods)
56
52
  ::ActiveRecord::Base.prepend(Patches::TransactionsClassMethods)
57
53
  ::ActiveRecord::Base.prepend(Patches::Validations)
58
54
 
@@ -60,11 +56,13 @@ module OpenTelemetry
60
56
  end
61
57
 
62
58
  def require_dependencies
63
- require 'ruby2_keywords'
59
+ # Our patches depend on Ruby 2 Keyword Syntax compatability since it is decorating the existing AR API
60
+ # Once we migrate to ActiveSupport Notifications based instrumentation we can remove this require statement.
61
+ require 'ruby2_keywords' # rubocop:disable Lint/RedundantRequireStatement
64
62
  require_relative 'patches/querying'
65
63
  require_relative 'patches/persistence'
66
64
  require_relative 'patches/persistence_class_methods'
67
- require_relative 'patches/persistence_insert_class_methods' if insert_class_methods_supported?
65
+ require_relative 'patches/persistence_insert_class_methods'
68
66
  require_relative 'patches/transactions_class_methods'
69
67
  require_relative 'patches/validations'
70
68
  require_relative 'patches/relation_persistence'
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveRecord
10
- VERSION = '0.4.1'
10
+ VERSION = '0.5.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.4.1
4
+ version: 0.5.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: 2023-01-14 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -247,10 +247,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
247
247
  licenses:
248
248
  - Apache-2.0
249
249
  metadata:
250
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.4.1/file/CHANGELOG.md
250
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.5.0/file/CHANGELOG.md
251
251
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_record
252
252
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
253
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.4.1
253
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_record/0.5.0
254
254
  post_install_message:
255
255
  rdoc_options: []
256
256
  require_paths: