Commit 505c2fd
committed
fix: inject pod_name, namespace, node_name into JSON log output
Reads from RuntimeContext (detected once at startup). On K8s, these
fields appear in every JSON log line for correlation. On bare metal,
fields are None and injection is skipped (no overhead).
Uses the existing inject_and_redact_json_line mechanism alongside
service_name and service_version.1 parent 515c090 commit 505c2fd
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
259 | 280 | | |
260 | 281 | | |
261 | 282 | | |
| |||
0 commit comments