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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd46d42e09e6febb6b090f31b3f05560500493ef04ba51b8e71eacb987a4f30e
|
4
|
+
data.tar.gz: c8628c9a05565c361c8e6c6347043f507c5131a876136f01a7e4dca3abfdea6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b52ff4986c9fae1b7b1de70667f6fe85c162e2c9bf2c07d25e088ab2e3de9481273a987db8bb2747a9d8317c18bf0c028d794d926d53d9fc91f2da4b1fa3eca6
|
7
|
+
data.tar.gz: c17afb89ee2b2cc8bd31f72a2f24bd3899a145a99a6037cede6f9ef4b25f4e5a4e397ce50577281fb674d502c702d77339f1cdb1d7f13611ea172b45fddd87f5
|
data/CHANGELOG.md
CHANGED
@@ -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('
|
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)
|
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
|
-
|
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'
|
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'
|
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
|
+
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-
|
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.
|
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.
|
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:
|