neetodeploy-autoscale 2.1.1 → 2.1.2
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/neetodeploy/autoscale/rails/metrics.rb +18 -0
- data/lib/neetodeploy/autoscale/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: 7c7841930ad563bfa0d372de339715f70ba9dba99e0ef61ec09fcc9f0624a683
|
|
4
|
+
data.tar.gz: 1134df572ad17a7a6678770ac3a63227e4544f7d9b195489070ae14f3fead18d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a6eb8853074dc0029d1c8dbab103916fda6f1719206dc966d3dcd5f2ea43250ec8762e52c00a2b32efa2071af3b3e7e3d7ea35cc07a664e69383e354ee0a61f
|
|
7
|
+
data.tar.gz: 55374376294d4c77f712423b16d5df3d9b5755ca99210697f225904a3d952dae6930e277d7ab2c8a3261d9cef978990943ffda50c95cfbb8e04b3d4440520a64
|
|
@@ -11,6 +11,24 @@ module Neetodeploy
|
|
|
11
11
|
@request_start_header_raw = env["HTTP_X_REQUEST_START"]
|
|
12
12
|
@request_start_header = @request_start_header_raw.to_i
|
|
13
13
|
@network_time = env["puma.request_body_wait"].to_i
|
|
14
|
+
|
|
15
|
+
# Debug: Log all HTTP headers to help diagnose
|
|
16
|
+
if @request_start_header_raw.nil? || @request_start_header_raw.empty?
|
|
17
|
+
# Get all HTTP_* headers (these are the request headers)
|
|
18
|
+
http_headers = env.keys.grep(/^HTTP_/)
|
|
19
|
+
|
|
20
|
+
if http_headers.any?
|
|
21
|
+
NeetoDeploy::Logger.logger.debug("All HTTP headers found: #{http_headers.sort.join(', ')}")
|
|
22
|
+
else
|
|
23
|
+
NeetoDeploy::Logger.logger.debug("No HTTP headers found in env. Available env keys: #{env.keys.grep(/^HTTP|^REQUEST|^SERVER/).sort.join(', ')}")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Also check for X-Request-Start with different casing
|
|
27
|
+
x_request_variants = env.select { |k, _| k.to_s.upcase.include?("REQUEST_START") || k.to_s.upcase.include?("X_REQUEST") }
|
|
28
|
+
if x_request_variants.any?
|
|
29
|
+
NeetoDeploy::Logger.logger.debug("Found X-Request-Start variants: #{x_request_variants.keys.join(', ')}")
|
|
30
|
+
end
|
|
31
|
+
end
|
|
14
32
|
end
|
|
15
33
|
|
|
16
34
|
def ignore?
|