opentelemetry-instrumentation-active_support 0.2.2 → 0.3.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: cfcf89481aac5a7aa04656664ec69783bc4c95fa728cff0731565bcb2b187bff
|
4
|
+
data.tar.gz: 1abba1ddb9eeed1da5bde82b8e67ca61aaa6f3dff1af8c7a2f562f489bb74ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e7a1346d085079fb90d9c953591850e4de21dc77936da728ccd601ce9637ebc77d72062d4cab6f8d44a030324f5ca49741939fea1f5c96ba85bc4d08302933
|
7
|
+
data.tar.gz: fd25af3cff46d84834924865544b5d6cced2000cc49aa0c1cfa6bb32d781d78a1b636cb1015adf7720495e9f96af65332ed05b4ed2733073d4a433e564b3ed43
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-active_support
|
2
2
|
|
3
|
+
### v0.3.0 / 2023-02-01
|
4
|
+
|
5
|
+
* BREAKING CHANGE: Drop Rails 5 Support
|
6
|
+
|
7
|
+
* ADDED: Drop Rails 5 Support
|
8
|
+
|
3
9
|
### v0.2.2 / 2023-01-14
|
4
10
|
|
5
11
|
* FIXED: Drop Rails dependency for ActiveSupport Instrumentation
|
@@ -8,8 +8,6 @@ module OpenTelemetry
|
|
8
8
|
module Instrumentation
|
9
9
|
# rubocop:disable Style/Documentation
|
10
10
|
module ActiveSupport
|
11
|
-
NOTIFIER_MAJOR_VERSION_6 = 6
|
12
|
-
|
13
11
|
# The SpanSubscriber is a special ActiveSupport::Notification subscription
|
14
12
|
# handler which turns notifications into generic spans, taking care to handle
|
15
13
|
# context appropriately.
|
@@ -17,7 +15,6 @@ module OpenTelemetry
|
|
17
15
|
# A very hacky way to make sure that OpenTelemetry::Instrumentation::ActiveSupport::SpanSubscriber
|
18
16
|
# gets invoked first
|
19
17
|
# Rails 6+ https://github.com/rails/rails/blob/0f0ec9908e25af36df2d937dc431f626a4102b3d/activesupport/lib/active_support/notifications/fanout.rb#L51
|
20
|
-
# Rails 5 https://github.com/rails/rails/blob/8030cff808657faa44828de001cd3b80364597de/activesupport/lib/active_support/notifications/fanout.rb#L16
|
21
18
|
def self.subscribe(
|
22
19
|
tracer,
|
23
20
|
pattern,
|
@@ -34,7 +31,7 @@ module OpenTelemetry
|
|
34
31
|
subscriber_object = ::ActiveSupport::Notifications.subscribe(pattern, subscriber)
|
35
32
|
|
36
33
|
::ActiveSupport::Notifications.notifier.synchronize do
|
37
|
-
subscribers =
|
34
|
+
subscribers = ::ActiveSupport::Notifications.notifier.instance_variable_get(:@string_subscribers)[pattern]
|
38
35
|
|
39
36
|
if subscribers.nil?
|
40
37
|
OpenTelemetry.handle_error(
|
@@ -51,17 +48,6 @@ module OpenTelemetry
|
|
51
48
|
subscriber_object
|
52
49
|
end
|
53
50
|
|
54
|
-
def self.find_subscribers(pattern)
|
55
|
-
active_support_major_version = ::ActiveSupport.version.canonical_segments.first
|
56
|
-
|
57
|
-
# TODO: Drop support for Rails 5 since it is EOL since 2022-06-01
|
58
|
-
if active_support_major_version >= NOTIFIER_MAJOR_VERSION_6
|
59
|
-
::ActiveSupport::Notifications.notifier.instance_variable_get(:@string_subscribers)[pattern]
|
60
|
-
else
|
61
|
-
::ActiveSupport::Notifications.notifier.instance_variable_get(:@subscribers)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
51
|
class SpanSubscriber
|
66
52
|
ALWAYS_VALID_PAYLOAD_TYPES = [TrueClass, FalseClass, String, Numeric, Symbol].freeze
|
67
53
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-active_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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
|
@@ -269,10 +269,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
269
269
|
licenses:
|
270
270
|
- Apache-2.0
|
271
271
|
metadata:
|
272
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.
|
272
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.3.0/file/CHANGELOG.md
|
273
273
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_support
|
274
274
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
275
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.
|
275
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.3.0
|
276
276
|
post_install_message:
|
277
277
|
rdoc_options: []
|
278
278
|
require_paths:
|