Commit 509ad2e
committed
fix: align Datadog-Client-Computed-Stats header with ddog_agent_has_stats_computation gate
The header was still sent unconditionally based on the INI flag alone in
ext/coms.c and ext/auto_flush.c, while serializer.c already gates actual
stats computation on ddog_agent_has_stats_computation(). Add the same
agent-capability check to both header-emission sites so the header value
matches the serializer behaviour and the TRACE_STATS_COMPUTATION_CLIENT_DROP_P0S_FALSE
system test passes.1 parent 9a2b413 commit 509ad2e
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| |||
0 commit comments