Skip to content

Surface per-batch record count (param2) in HTTP response debug events#1487

Open
mogiligarimidi23 wants to merge 1 commit into
mainfrom
user/mogirg/extra_drop_counter
Open

Surface per-batch record count (param2) in HTTP response debug events#1487
mogiligarimidi23 wants to merge 1 commit into
mainfrom
user/mogirg/extra_drop_counter

Conversation

@mogiligarimidi23

Copy link
Copy Markdown
Contributor

Summary

Populates evt.param2 with ctx->recordIdsAndTenantIds.size() across
all 5 HTTP debug-event dispatch paths in HttpResponseDecoder.cpp:

  • EVT_HTTP_OK (successful upload)
  • EVT_HTTP_ERROR (rejected by server)
  • EVT_HTTP_FAILURE × 3 (no response, temporary server failure,
    temporary network failure)

Motivation

Debug event listeners currently receive the HTTP status code in param1
but have no way to know how many records were in the batch. This makes
it impossible to accurately count events delivered vs. dropped per HTTP
round-trip. The EVT_REJECTED path already sets param2; this change
brings the other paths to parity.

Impact

  • No behavioral change to existing consumers that ignore param2
  • Enables accurate per-batch attribution for telemetry drop tracking

@mogiligarimidi23 mogiligarimidi23 requested a review from a team as a code owner June 18, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant