log_bench 0.5.0 → 0.5.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/log_bench/app/renderer/details.rb +16 -0
- data/lib/log_bench/version.rb +1 -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: 7c2d50ada733ae04ce5cfdfdf02b676efb555456f9578b24cf82a5e3985e339f
|
|
4
|
+
data.tar.gz: de27a1741e63115c4aa4c35bb7ed35823a8fe722ff0067fe6901ce2c42599295
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b03dc3daa739c3b0f2b6fedb33013515f8da626f80c2c4f68c47ac86fa39351510ec6735812890ad72df7b58d1cdcbc762798f236939579c130542065c08118
|
|
7
|
+
data.tar.gz: f5cff1495402c5dd22bd16ce288a7d11bbf80fc41d0bff0abd2dc95b56b0db290168531a087dcadd827f89ed548ebc3933353013fe2af65c64fb535fc1d5ff64
|
|
@@ -193,6 +193,8 @@ module LogBench
|
|
|
193
193
|
entry_id += 1
|
|
194
194
|
add_request_id_lines(lines, request, entry_id)
|
|
195
195
|
entry_id += 1
|
|
196
|
+
add_request_timestamp_lines(lines, request, entry_id)
|
|
197
|
+
entry_id += 1
|
|
196
198
|
add_params_lines(lines, request, max_width, entry_id)
|
|
197
199
|
entry_id += 1
|
|
198
200
|
add_related_logs_section(lines, request, entry_id)
|
|
@@ -378,6 +380,20 @@ module LogBench
|
|
|
378
380
|
screen.color_pair(n)
|
|
379
381
|
end
|
|
380
382
|
|
|
383
|
+
def add_request_timestamp_lines(lines, request, entry_id)
|
|
384
|
+
if request.timestamp
|
|
385
|
+
lines << {
|
|
386
|
+
text: "Timestamp: #{request.timestamp.strftime("%Y-%m-%d %H:%M:%S UTC")}",
|
|
387
|
+
color: nil,
|
|
388
|
+
entry_id: entry_id,
|
|
389
|
+
segments: [
|
|
390
|
+
{text: "Timestamp: ", color: color_pair(1)},
|
|
391
|
+
{text: request.timestamp.strftime("%Y-%m-%d %H:%M:%S UTC"), color: nil} # Default white color
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
381
397
|
def detail_win
|
|
382
398
|
screen.detail_win
|
|
383
399
|
end
|
data/lib/log_bench/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: log_bench
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamín Silva
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-11-06 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: zeitwerk
|