rails-profiler 0.44.6 → 0.44.7
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/CHANGELOG.md +12 -0
- data/lib/profiler/cluster/master_client.rb +13 -2
- data/lib/profiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e5e67693969c446b7da7edacf21a86db824285009870c5a9efa6600d9f8cf45
|
|
4
|
+
data.tar.gz: a80f11e81cb4ba3a1d9873dc266b47ea7f58947af1411348b12a889576ef6574
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c06fbe2c4dffe19ee1d74b97b946986d823a97c207e5928ce799cb05aafb81def4d74893250aacc1b6f71ff4b240a11b367334039ff74ff47bfd269559d82a03
|
|
7
|
+
data.tar.gz: 5c133bd5c4a834c4259cf62a9999615d4317ae7e2d442047a9737619e3bb4d8b9a48b779de83891ddddb76d9dc4172b05db2e2ce70755751107e3449d66a38f5
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,18 @@ every commit of every tag interval is accounted for one way or the other.
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.44.7] - 2026-10-22
|
|
23
|
+
|
|
24
|
+
<!-- stamped -->
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Cluster:** the `post` method of `MasterClient` now includes `write_timeout` alongside `open_timeout`
|
|
29
|
+
and `read_timeout`, preventing extended waits when the master server stops responding mid-write.
|
|
30
|
+
- **Cluster:** configuration errors in the heartbeat loop (invalid `master_url` or missing secret) are
|
|
31
|
+
now logged once instead of on every heartbeat cycle, eliminating log noise from unrecoverable
|
|
32
|
+
configuration problems.
|
|
33
|
+
|
|
22
34
|
## [0.44.6] - 2026-10-21
|
|
23
35
|
|
|
24
36
|
<!-- stamped -->
|
|
@@ -87,7 +87,8 @@ module Profiler
|
|
|
87
87
|
def post(uri, body)
|
|
88
88
|
Profiler.untracked_http do
|
|
89
89
|
Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https",
|
|
90
|
-
open_timeout: OPEN_TIMEOUT, read_timeout: READ_TIMEOUT
|
|
90
|
+
open_timeout: OPEN_TIMEOUT, read_timeout: READ_TIMEOUT,
|
|
91
|
+
write_timeout: READ_TIMEOUT) do |http|
|
|
91
92
|
http.post(uri.request_uri, body, request_headers)
|
|
92
93
|
end
|
|
93
94
|
end
|
|
@@ -135,12 +136,22 @@ module Profiler
|
|
|
135
136
|
rescue => e
|
|
136
137
|
@registered = false
|
|
137
138
|
@failed = true
|
|
138
|
-
|
|
139
|
+
if configuration_error?(e)
|
|
140
|
+
Profiler.log_error_once(:cluster_config, "Cluster: communication with the master failed due to configuration", e)
|
|
141
|
+
else
|
|
142
|
+
log_warn("communication with the master failed, will retry", e)
|
|
143
|
+
end
|
|
139
144
|
ensure
|
|
140
145
|
sleep interval
|
|
141
146
|
end
|
|
142
147
|
end
|
|
143
148
|
|
|
149
|
+
# True when the error is a permanent configuration problem that will not resolve by retrying.
|
|
150
|
+
def configuration_error?(error)
|
|
151
|
+
message = error.message.to_s
|
|
152
|
+
message.start_with?("master_url") || message.include?("secret")
|
|
153
|
+
end
|
|
154
|
+
|
|
144
155
|
def log_info(msg)
|
|
145
156
|
Profiler.log_info("Cluster: #{msg}")
|
|
146
157
|
end
|
data/lib/profiler/version.rb
CHANGED