otp-rails 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/otp_rails/telemetry.rb +9 -1
- data/lib/otp_rails/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f67972e8849cabbbc0a9e5f3e77cbde0b8b977d02728a6eec0b5f58b99dae74
|
|
4
|
+
data.tar.gz: c63e94a36788699efa990cc47ea160f890a2b74352260b845a5c5e80a64c96b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10b3255ea24b2b4f5a9b592c74ae48de0db1fb50207066e4db8e64ee00dcc662d1ffb96450575f83dc46ed55915fa498f01aeba469af51c76e72bc899b8cbbfb
|
|
7
|
+
data.tar.gz: 11c4e0021b731061f2d9b4b72c510840371d29a1faa4e723bf4da96c8af9373fff7490b457cd88e9a1356e66c0db2c7848ebe7b6a4fafc4f66aed21f8fd16585
|
data/lib/otp_rails/telemetry.rb
CHANGED
|
@@ -35,7 +35,15 @@ module OtpRails
|
|
|
35
35
|
measurements: measurements, metadata: metadata,
|
|
36
36
|
ts: Process.clock_gettime(Process::CLOCK_REALTIME) }
|
|
37
37
|
subs = @mutex.synchronize { @subscribers.dup }
|
|
38
|
-
subs.each
|
|
38
|
+
subs.each do |s|
|
|
39
|
+
s.call(event)
|
|
40
|
+
rescue StandardError => e
|
|
41
|
+
# A subscriber must never break the bus: emit is called from the
|
|
42
|
+
# supervisor loop and monitor threads, and other subscribers (the
|
|
43
|
+
# Elixir sidecar exporter, the resilience bridge) must keep
|
|
44
|
+
# receiving events even when one subscriber raises (resilience#1).
|
|
45
|
+
warn "[otp-rails] telemetry subscriber raised: #{e.class}: #{e.message}"
|
|
46
|
+
end
|
|
39
47
|
event
|
|
40
48
|
end
|
|
41
49
|
end
|
data/lib/otp_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: otp-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- timimsms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
|
|
13
|
+
description: 'RENAMED: this gem is now `odoshi` (https://rubygems.org/gems/odoshi).
|
|
14
|
+
otp-rails 0.2.1 is identical to 0.2.0 plus a telemetry hardening fix; all future
|
|
15
|
+
releases ship as odoshi. See https://github.com/shishi-odoshi/odoshi.'
|
|
15
16
|
email:
|
|
16
17
|
executables:
|
|
17
18
|
- otp-rails
|
|
@@ -50,7 +51,9 @@ metadata:
|
|
|
50
51
|
source_code_uri: https://github.com/shishi-odoshi/otp-rails
|
|
51
52
|
changelog_uri: https://github.com/shishi-odoshi/otp-rails/blob/main/CHANGELOG.md
|
|
52
53
|
bug_tracker_uri: https://github.com/shishi-odoshi/otp-rails/issues
|
|
53
|
-
post_install_message:
|
|
54
|
+
post_install_message: |-
|
|
55
|
+
otp-rails has been renamed to `odoshi` — https://rubygems.org/gems/odoshi
|
|
56
|
+
otp-rails will receive no further releases. Migration table: CHANGELOG 0.3.0 in the odoshi repo.
|
|
54
57
|
rdoc_options: []
|
|
55
58
|
require_paths:
|
|
56
59
|
- lib
|