opentelemetry-instrumentation-active_support 0.4.2 → 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: a7b48561080d08ff41f89e94368ecb978055db67dcda06c7b62795b2c5ebbb42
4
- data.tar.gz: 3a44fb80dd48c61279437345476363924ba65db54d8346d182ca7de45e8d3d11
3
+ metadata.gz: dd1430bbbad917c43fabd403d83bdf2f5793051541d041b371d9445d347f93d9
4
+ data.tar.gz: '0269241b82d9ba154bf96b0b5d8a39a71de8f1b28024d4dffadd082008c07c5c'
5
5
  SHA512:
6
- metadata.gz: 1e6ea9a09b5f858fa84dac1331569abfbccee55365176e5c9a25b9da3a446b8fdda2e3273ad017536ead551d8b973039c39a22db01bed4710363c65c155cffdb
7
- data.tar.gz: c2bf310068552fdbda6ff074d12188e2cea799bda8d920b2c7391d869f00b63e156612bf2af87fdb843a851258803e8621707217b22169d44613baccbc9db76d
6
+ metadata.gz: 762d4ef7a1e5bcadee12e4f2b9b681ec2576d63fdfa34946615cdfb413c1d16d8ecf03c5ff2bc24db42bad01142b0788678f2095ac80012c12afab20e1028561
7
+ data.tar.gz: 6e392af0651f3fb26ddde4542bdded890b2be435e9804dffebfc2aafc6fde53e273f410ee8002c20f4495b8d04fa435d7f575629276a69199e833c298944ce2b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.4.3 / 2023-10-16
8
+
9
+ * FIXED: Add Rails 7.1 compatibility
10
+
3
11
  ### v0.4.2 / 2023-09-07
4
12
 
5
13
  FIXED: Reduce Object allocation
@@ -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.2'
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.2
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-09-07 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
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 3.7.6
215
+ version: '3.19'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 3.7.6
222
+ version: '3.19'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: yard
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -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.2/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.2
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: