Skip to content

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

Merged
Lalit Kumar Bhasin (lalitb) merged 1 commit into
mainfrom
user/mogirg/extra_drop_counter
Jun 22, 2026
Merged

Surface per-batch record count (param2) in HTTP response debug events#1487
Lalit Kumar Bhasin (lalitb) merged 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,

@lalitb
Lalit Kumar Bhasin (lalitb) merged commit 5aa9d43 into main Jun 22, 2026
30 of 32 checks passed
@lalitb
Lalit Kumar Bhasin (lalitb) deleted the user/mogirg/extra_drop_counter branch June 22, 2026 18:52
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.

2 participants