Commit 2cb48d2
authored
fix: add organization_id to provider error and stream error logs (#522)
* fix: add organization_id to provider error and stream error logs
Add organization_id to all log statements in:
- map_provider_error(): all 17 error/warn logs now include org_id
for correlating provider failures to specific tenants
- create_signature_future(): attestation storage errors now include
org_id and model_id for debugging E2EE issues
- Route handler streaming errors: serialization failures, stream
errors, and multi-error completions now include org_id
This enables filtering Datadog logs by organization to identify
whether failures are tenant-specific or systemic.
* fix: address review comments on org_id logging
- Rename org_id_for_stream → organization_id for tracing shorthand (%organization_id)
- Use .0 on OrganizationId for raw UUID in log fields
- Clone model string into chain closure instead of capturing full request
- Use structured error field (error = ?e) instead of {:?} in message
for signature storage log
* chore: gitignore repro scripts
* fix: sort mod general alphabetically in e2e_all/main.rs
* fix: add missing organization_id arg to NoPubKeyProvider test1 parent 93dae5f commit 2cb48d2
3 files changed
Lines changed: 95 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
| 412 | + | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| 438 | + | |
435 | 439 | | |
436 | 440 | | |
437 | 441 | | |
| |||
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
| 454 | + | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
| |||
459 | 464 | | |
460 | 465 | | |
461 | 466 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
472 | 481 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
478 | 487 | | |
479 | | - | |
| 488 | + | |
| 489 | + | |
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments