opentelemetry-instrumentation-action_view 0.1.0 → 0.1.1

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: e198a53133979f37a449a32a0b46c1480a96fd425961ef58b58ccf1c63546a21
4
- data.tar.gz: aa648e7dbbbb7f39aaabb88c88eabbe1ebd1baf1f8a075f0f2b5a74bb3169c5b
3
+ metadata.gz: 5b3f3f4d5895687d7a605b46bf5d7157867f0e9741e67682c7e46b911a56ae04
4
+ data.tar.gz: cc5da52def88dc15c79eaf45bc8818723d86d486017917d153f12144c453f851
5
5
  SHA512:
6
- metadata.gz: 23a59f8b97c874a4e35b01ce08eaa2a09d0874727cdbd775f3aaea369df989bb95d6ce8760470121cad414cc3c7597d2ecd25e74145da47a4fe8a544cbb4ff24
7
- data.tar.gz: 43e28a1c3b3a96c191cd3665ad930a6ebe4f2ef8bbad39e4bd3796713f25dffe2a7e80d3a2c3c2b50814f79ecd4c91b6553b7c797cf7e4f9f71c6772263e6c7d
6
+ metadata.gz: c80baa29054a4c48526b8a0cf0a6062af1d7632b8bf685a534fac1877948cf1c1e1620bf4ac44ce3e1f3742de3332241a09ace05befef625dd07258bc6a1e1e7
7
+ data.tar.gz: 9b18a5a6f11fb3d909f156d490ca17b829a4accf2e512d7b10544fac0bb2fa494bd3291f565d0e921c6c2c2e2f190baf75651099d5fa2005611732db939f58ae
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-action_view
2
2
 
3
+ ### v0.1.1 / 2021-09-09
4
+
5
+ * FIXED: Keep Active Support subscriptions intact when patching
6
+
3
7
  ### v0.1.0 / 2021-08-12
4
8
 
5
9
  * Initial release.
@@ -3,6 +3,8 @@
3
3
  # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+ require 'delegate'
6
8
 
7
9
  module OpenTelemetry
8
10
  module Instrumentation
@@ -10,7 +12,11 @@ module OpenTelemetry
10
12
  # This is a replacement for the default Fanout notifications queue, which adds special
11
13
  # handling around returned context from the SpanSubscriber notification handlers.
12
14
  # Used together, it allows us to trace arbitrary ActiveSupport::Notifications safely.
13
- class Fanout < ::ActiveSupport::Notifications::Fanout
15
+ class Fanout < DelegateClass(::ActiveSupport::Notifications::Fanout)
16
+ def initialize(notifier = ::ActiveSupport::Notifications::Fanout.new)
17
+ super(notifier)
18
+ end
19
+
14
20
  def start(name, id, payload)
15
21
  listeners_for(name).map do |s|
16
22
  result = [s]
@@ -16,7 +16,7 @@ module OpenTelemetry
16
16
  # This Railtie sets up subscriptions to relevant ActionView notifications
17
17
  class Railtie < ::Rails::Railtie
18
18
  config.before_initialize do
19
- ::ActiveSupport::Notifications.notifier = Fanout.new
19
+ ::ActiveSupport::Notifications.notifier = Fanout.new(::ActiveSupport::Notifications.notifier)
20
20
  end
21
21
 
22
22
  config.after_initialize do
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActionView
10
- VERSION = '0.1.0'
10
+ VERSION = '0.1.1'
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-action_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-16 00:00:00.000000000 Z
11
+ date: 2021-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -215,10 +215,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
215
215
  licenses:
216
216
  - Apache-2.0
217
217
  metadata:
218
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_view/v0.1.0/file.CHANGELOG.html
218
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_view/v0.1.1/file.CHANGELOG.html
219
219
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/action_view
220
220
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
221
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_view/v0.1.0
221
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-action_view/v0.1.1
222
222
  post_install_message:
223
223
  rdoc_options: []
224
224
  require_paths: