Commit 5ff8daf
feat(nginx): emit JSON access logs with request_id, org_id, workspace_id
Add a json_combined log_format to all CVM nginx configs so every inference
request is logged with the fields needed to join cloud-api spans in Datadog:
request_id – X-Request-Id header (set by cloud-api, part of e2e tracing)
org_id – X-Org-Id header (set by cloud-api PR #624)
workspace_id – X-Workspace-Id header (set by cloud-api PR #624)
host – SNI hostname (identifies the model/CVM)
method/uri – request path
status – HTTP response code
request_length / bytes_sent / request_time – cost/volume metrics
upstream_addr – which inference-proxy instance handled the request
Datadog Agent already collects CVM logs with source:nginx; JSON escape=json
means fields are auto-parsed as @request_id, @org_id etc in Log Analytics
without any additional pipeline configuration.
Three files updated:
- GLM-5.1.yaml (per-server access_log directives, :80 + :443)
- Qwen3.5-122B.yaml (http-context access_log, flat config style)
- small-models.yaml (http-context access_log, flat config style)
Part of org-id e2e tracing plan (cloud-api#625).
Depends on: cloud-api#624 (MERGED), inference-proxy#130 (MERGED)1 parent 016aac9 commit 5ff8daf
3 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
272 | 287 | | |
273 | 288 | | |
274 | 289 | | |
| 290 | + | |
275 | 291 | | |
276 | 292 | | |
277 | 293 | | |
| |||
306 | 322 | | |
307 | 323 | | |
308 | 324 | | |
| 325 | + | |
309 | 326 | | |
310 | 327 | | |
311 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
304 | 321 | | |
305 | 322 | | |
306 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
913 | 930 | | |
914 | 931 | | |
915 | 932 | | |
| |||
0 commit comments