This commit is contained in:
Mateusz Gruszczyński committed 2026-10-04 22:53:33 +02:00
1 parent 174389e5b1
commit e6604e41fc
73 files changed
+1240 -201

No files matched your search

+2
View File
@@ -247,6 +247,7 @@ pub struct LogEntry {
pub transform_effective_enabled: Option<bool>,
pub backend: Option<String>,
pub id: u64,
pub request_id: String,
pub time_ms: u64,
pub method: String,
pub host: String,
@@ -398,6 +399,7 @@ fn value_for(entry: &LogEntry, name: &str) -> Value {
.map(Value::String)
.unwrap_or(Value::Null),
"id" => json!(entry.id),
"request_id" => json!(&entry.request_id),
"time_ms" => json!(entry.time_ms),
"method" => json!(&entry.method),
"host" => json!(&entry.host),
+1
View File
@@ -235,6 +235,7 @@ fn source_value_name(name: &str) -> bool {
| "transform_effective_enabled"
| "backend"
| "id"
| "request_id"
| "time_ms"
| "method"
| "host"
+1
View File
@@ -9,6 +9,7 @@ mod tests {
transform_effective_enabled: Some(false),
backend: Some("origin".into()),
id: 7,
request_id: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef".into(),
time_ms: 1_700_000_000_000,
method: "GET".into(),
host: "app.example".into(),