Skip to content

AGTMETRICS-623 Extract BasePayloadBuilder and SketchBinConsumer - #351

Merged
vickenty merged 2 commits into
masterfrom
vickenty/dhs
Nov 26, 2026
Merged

vickenty merged 2 commits into
masterfrom
vickenty/dhs

Conversation

@vickenty

Copy link
Copy Markdown
Contributor

Split BasePayloadBuilder out of PayloadBuilder, so we can build AggregationPayloadBuilder on top of the same foundation. No functional code changes.

Move the dictionaries, size checks and payload splitting into a package-private BasePayloadBuilder, with commit/revert/clear hooks for builder-specific state, so another payload builder can share them.

Extract SketchMetric.BinConsumer into SketchBinConsumer, along with the bin-size pre-check, as SketchBinConsumer.putBins.

No change to the encoded output.

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 049c3c2 | Docs | Give us feedback!

@vickenty
vickenty marked this pull request as ready for review November 25, 2026 17:56
@vickenty
vickenty requested a review from a team as a code owner November 25, 2026 17:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:57:34.553482Z f6450c8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Move the dictionaries, size checks and payload splitting into a
package-private BasePayloadBuilder, with commit/revert/clear hooks for
builder-specific state, so another payload builder can share them.

No change to the encoded output.
Move the bin-size pre-check along with it, as SketchBinConsumer.putBins.

No change to the encoded output.
@vickenty vickenty changed the title AGTMETRICS-623 Split BasePayloadBuilder out of PayloadBuilder AGTMETRICS-623 Extract BasePayloadBuilder and SketchBinConsumer Nov 25, 2026
@vickenty
vickenty merged commit 43d661a into master Nov 26, 2026
23 checks passed
@vickenty
vickenty deleted the vickenty/dhs branch November 26, 2026 10:46
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.

3 participants