Commit 1e41c20
fix(operations): throttle the public exportTraces endpoint
exportTraces was the only export operation that enqueued an email export
without passing through enforceExportRequestRateLimit, so an API caller
could enqueue unbounded CSV export jobs and emails per (org, project,
recipient) while exportSignals and exportDatasetRows were both capped at
10/hour in production.
Adds the same throttle its siblings use and documents the resulting 429
in the OpenAPI contract, which required swapping typedResponses (success
status only, by design) for the explicit responses object both siblings
already use.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 25249fd commit 1e41c20
2 files changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14674 | 14674 | | |
14675 | 14675 | | |
14676 | 14676 | | |
| 14677 | + | |
| 14678 | + | |
| 14679 | + | |
| 14680 | + | |
| 14681 | + | |
| 14682 | + | |
| 14683 | + | |
| 14684 | + | |
| 14685 | + | |
| 14686 | + | |
14677 | 14687 | | |
14678 | 14688 | | |
14679 | 14689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
558 | 561 | | |
559 | 562 | | |
560 | 563 | | |
561 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
562 | 571 | | |
563 | 572 | | |
564 | 573 | | |
| |||
578 | 587 | | |
579 | 588 | | |
580 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
581 | 601 | | |
582 | 602 | | |
583 | 603 | | |
| |||
0 commit comments