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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd1430bbbad917c43fabd403d83bdf2f5793051541d041b371d9445d347f93d9
|
4
|
+
data.tar.gz: '0269241b82d9ba154bf96b0b5d8a39a71de8f1b28024d4dffadd082008c07c5c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 762d4ef7a1e5bcadee12e4f2b9b681ec2576d63fdfa34946615cdfb413c1d16d8ecf03c5ff2bc24db42bad01142b0788678f2095ac80012c12afab20e1028561
|
7
|
+
data.tar.gz: 6e392af0651f3fb26ddde4542bdded890b2be435e9804dffebfc2aafc6fde53e273f410ee8002c20f4495b8d04fa435d7f575629276a69199e833c298944ce2b
|
data/CHANGELOG.md
CHANGED
@@ -30,19 +30,23 @@ module OpenTelemetry
|
|
30
30
|
|
31
31
|
subscriber_object = ::ActiveSupport::Notifications.subscribe(pattern, subscriber)
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
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.
|
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-
|
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.
|
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.
|
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:
|