Commit b956a77
input_log: count input metrics once for conditional route fan-out
split_and_append_route_payloads() appended one chunk copy per matching
route through the metric-bearing append helpers, double counting the
input records and bytes that are already accounted for by the
unconditional append in input_log_append_processed_internal().
Use the new flags-aware append helpers with
FLB_INPUT_CHUNK_SKIP_INPUT_METRICS for the per-route copies so the
input-level totals reflect the original ingestion exactly once,
regardless of how many routes match.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: zshuang0316 <zshuang0316@163.com>1 parent bdb38ed commit b956a77
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1400 | 1407 | | |
1401 | | - | |
| 1408 | + | |
1402 | 1409 | | |
| 1410 | + | |
1403 | 1411 | | |
1404 | 1412 | | |
1405 | 1413 | | |
1406 | 1414 | | |
1407 | 1415 | | |
1408 | 1416 | | |
1409 | 1417 | | |
1410 | | - | |
| 1418 | + | |
1411 | 1419 | | |
| 1420 | + | |
1412 | 1421 | | |
1413 | 1422 | | |
1414 | 1423 | | |
| |||
0 commit comments