Commit aeda5a9
fix(tracer): use configurable MaxTagsHeaderLen for x-datadog-tags extraction
unmarshalPropagatingTags now uses the configured PropagatorConfig
MaxTagsHeaderLen as the size cap on incoming x-datadog-tags headers
instead of a hardcoded 512-byte constant. A non-positive MaxTagsHeaderLen
disables extraction, mirroring the existing inject-side disable behavior.
The DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH environment variable now governs
both inject and extract.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent c3b9324 commit aeda5a9
2 files changed
Lines changed: 53 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
| |||
539 | 536 | | |
540 | 537 | | |
541 | 538 | | |
542 | | - | |
| 539 | + | |
543 | 540 | | |
544 | 541 | | |
545 | 542 | | |
| |||
603 | 600 | | |
604 | 601 | | |
605 | 602 | | |
606 | | - | |
607 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
608 | 607 | | |
609 | 608 | | |
610 | 609 | | |
611 | | - | |
612 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
678 | 720 | | |
679 | 721 | | |
680 | 722 | | |
| |||
2434 | 2476 | | |
2435 | 2477 | | |
2436 | 2478 | | |
2437 | | - | |
| 2479 | + | |
2438 | 2480 | | |
2439 | 2481 | | |
2440 | 2482 | | |
| |||
0 commit comments