opentelemetry-instrumentation-active_support 0.2.2 → 0.4.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: f05dea64851f281aea6bee6633e44c555f4360cf9ad00e0c9c75c53d43d509d7
|
4
|
+
data.tar.gz: 925a3be66c721a7dbcd342c06c5ca4f680a9467feb3d2f687ac6159f45379c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09aedde06479b8e65fb085d17c4049ebe276d625a72fdd8c2091bb8a08b318366f1bd7f83648cb146b510aae0f52c8e4bcab9804abdf60492959fe9b05616274'
|
7
|
+
data.tar.gz: 4eb0348f115f96fb6bbb76172d4ded44f73c64b699ea9678ba023f448c0da4c62682c88c633d6015c6d63aa85c5e538d7bda819b37385677c255f958d9da9207
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-active_support
|
2
2
|
|
3
|
+
### v0.4.0 / 2023-04-17
|
4
|
+
|
5
|
+
* BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
6
|
+
|
7
|
+
* ADDED: Drop support for EoL Ruby 2.7
|
8
|
+
|
9
|
+
### v0.3.0 / 2023-02-01
|
10
|
+
|
11
|
+
* BREAKING CHANGE: Drop Rails 5 Support
|
12
|
+
|
13
|
+
* ADDED: Drop Rails 5 Support
|
14
|
+
|
3
15
|
### v0.2.2 / 2023-01-14
|
4
16
|
|
5
17
|
* 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.4.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-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.22.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.
|
40
|
+
version: 0.22.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: opentelemetry-test-helpers
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.3'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '0.3'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: pry
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '6'
|
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: '
|
166
|
+
version: '6'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rake
|
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: 1.
|
187
|
+
version: 1.48.1
|
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: 1.
|
194
|
+
version: 1.48.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: simplecov
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.4.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.4.0
|
276
276
|
post_install_message:
|
277
277
|
rdoc_options: []
|
278
278
|
require_paths:
|
@@ -281,14 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
281
|
requirements:
|
282
282
|
- - ">="
|
283
283
|
- !ruby/object:Gem::Version
|
284
|
-
version:
|
284
|
+
version: '3.0'
|
285
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
286
|
requirements:
|
287
287
|
- - ">="
|
288
288
|
- !ruby/object:Gem::Version
|
289
289
|
version: '0'
|
290
290
|
requirements: []
|
291
|
-
rubygems_version: 3.
|
291
|
+
rubygems_version: 3.2.33
|
292
292
|
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: ActiveSupport instrumentation for the OpenTelemetry framework
|