prom_multi_proc_rb 0.1.8 → 0.1.9
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/prom_multi_proc/version.rb +1 -1
- data/lib/prom_multi_proc/writer.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8811411820c1bf1cc08fd0ef5538c552f8a9b4cd4d4b3cbddf2e10f48b4031ab
|
|
4
|
+
data.tar.gz: 505dd817d21ca76c978eb1f47e27e795fa0e319fd302aaaefc01d0d0a7612d74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03a25ec11bd11ed406ab76ffd77dd8f1f71d64d2937dfe91f56aa7199682ba021362ce25c6e639250af3296451594bbaaf0ed80029893e45a49f3ad38ae222df
|
|
7
|
+
data.tar.gz: 33c09835ed2d8a3222da41a4e4234584490eaceba2e7f9aeacb4f584d4e87ab4a9145aed97136b05e8fb89c52bc107a6f68623ad16c2c188d3a332d8ef999d8a
|
|
@@ -66,7 +66,18 @@ module PromMultiProc
|
|
|
66
66
|
@lock.synchronize do
|
|
67
67
|
if (force && @messages.length > 0) || (@messages.length >= batch_size)
|
|
68
68
|
begin
|
|
69
|
-
|
|
69
|
+
if socket?
|
|
70
|
+
@warned_no_socket = false
|
|
71
|
+
write_socket(JSON.generate(@messages))
|
|
72
|
+
else
|
|
73
|
+
# Normal state when the daemon isn't running (CI, dev, one-off
|
|
74
|
+
# rake tasks) — warn once instead of once per batch
|
|
75
|
+
unless @warned_no_socket
|
|
76
|
+
warn("prom_multi_proc_rb - flush: socket #{@socket} not available, dropping metrics")
|
|
77
|
+
@warned_no_socket = true
|
|
78
|
+
end
|
|
79
|
+
false
|
|
80
|
+
end
|
|
70
81
|
rescue StandardError => e
|
|
71
82
|
# Never raise into host app; drop the batch
|
|
72
83
|
warn("prom_multi_proc_rb - flush: Failed to write batch to socket #{e}")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prom_multi_proc_rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Tongen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|