opentelemetry-instrumentation-active_support 0.4.3 → 0.4.4

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: d434dcacb053fbc80fd50dcbe5696cfa66faabcf2a76a941c5dd52f84de310e2
4
- data.tar.gz: 3fb535ec6c52dec4ec4d6fc0643bd1a8ed5023529bfbb37c034c2b5b5a931b40
3
+ metadata.gz: dd1430bbbad917c43fabd403d83bdf2f5793051541d041b371d9445d347f93d9
4
+ data.tar.gz: '0269241b82d9ba154bf96b0b5d8a39a71de8f1b28024d4dffadd082008c07c5c'
5
5
  SHA512:
6
- metadata.gz: eee7e6875c9d830739331dd6a9f2a978f722e8a42e7f7eb3835a58194f1e3fd638b859fcbe173c4348c4b9b3a5c018c09bc61ec40c070ffaabfe898991d9b4e5
7
- data.tar.gz: bb789e89cbb0dcde291d320f6655c5aab1ce00406131909442c2ab3236ab4a23025b911491ce738db7b4501d58410e3a42380f196d2fc7cbc3c8ecd1665c9bcd
6
+ metadata.gz: 762d4ef7a1e5bcadee12e4f2b9b681ec2576d63fdfa34946615cdfb413c1d16d8ecf03c5ff2bc24db42bad01142b0788678f2095ac80012c12afab20e1028561
7
+ data.tar.gz: 6e392af0651f3fb26ddde4542bdded890b2be435e9804dffebfc2aafc6fde53e273f410ee8002c20f4495b8d04fa435d7f575629276a69199e833c298944ce2b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-active_support
2
2
 
3
+ ### v0.4.4 / 2023-10-31
4
+
5
+ * FIXED: Remove call to ActiveSupport::Notifications.notifier#synchronize deprecated in Rails 7.2
6
+
3
7
  ### v0.4.3 / 2023-10-16
4
8
 
5
9
  * FIXED: Add Rails 7.1 compatibility
@@ -30,19 +30,23 @@ module OpenTelemetry
30
30
 
31
31
  subscriber_object = ::ActiveSupport::Notifications.subscribe(pattern, subscriber)
32
32
 
33
- ::ActiveSupport::Notifications.notifier.synchronize do
34
- subscribers = ::ActiveSupport::Notifications.notifier.instance_variable_get(:@string_subscribers)[pattern]
35
-
36
- if subscribers.nil?
37
- OpenTelemetry.handle_error(
38
- message: 'Unable to move OTEL ActiveSupport Notifications subscriber to the front of the notifications list which may cause incomplete traces.' \
39
- 'Please report an issue here: ' \
40
- 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues/new?labels=bug&template=bug_report.md&title=ActiveSupport%20Notifications%20subscribers%20list%20is%20nil'
41
- )
42
- else
43
- subscribers.unshift(
44
- subscribers.delete(subscriber_object)
45
- )
33
+ # this can be removed once we drop support for Rails < 7.2
34
+ # see https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/707 for more context
35
+ if ::ActiveSupport::Notifications.notifier.respond_to?(:synchronize)
36
+ ::ActiveSupport::Notifications.notifier.synchronize do
37
+ subscribers = ::ActiveSupport::Notifications.notifier.instance_variable_get(:@string_subscribers)[pattern]
38
+
39
+ if subscribers.nil?
40
+ OpenTelemetry.handle_error(
41
+ message: 'Unable to move OTEL ActiveSupport Notifications subscriber to the front of the notifications list which may cause incomplete traces.' \
42
+ 'Please report an issue here: ' \
43
+ 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues/new?labels=bug&template=bug_report.md&title=ActiveSupport%20Notifications%20subscribers%20list%20is%20nil'
44
+ )
45
+ else
46
+ subscribers.unshift(
47
+ subscribers.delete(subscriber_object)
48
+ )
49
+ end
46
50
  end
47
51
  end
48
52
  subscriber_object
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveSupport
10
- VERSION = '0.4.3'
10
+ VERSION = '0.4.4'
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_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
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-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -255,10 +255,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
255
255
  licenses:
256
256
  - Apache-2.0
257
257
  metadata:
258
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.3/file/CHANGELOG.md
258
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.4/file/CHANGELOG.md
259
259
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_support
260
260
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
261
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.3
261
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.4
262
262
  post_install_message:
263
263
  rdoc_options: []
264
264
  require_paths: