Skip to content

[processor/transform] Optimize limit_buckets compaction divisor#49021

Open
dmitryax wants to merge 1 commit into
open-telemetry:mainfrom
dmitryax:optimize-limit-buckets-divisor
Open

[processor/transform] Optimize limit_buckets compaction divisor#49021
dmitryax wants to merge 1 commit into
open-telemetry:mainfrom
dmitryax:optimize-limit-buckets-divisor

Conversation

@dmitryax

Copy link
Copy Markdown
Member

Compacts merge_histogram_buckets(..., method="limit_buckets") with the minimum divisor that keeps the output at or below the requested bucket limit, instead of repeatedly halving pairs. Updates docs and adds regression coverage for 10 buckets limited to 4.

Fixes #49020

Use the ceiling bucket-count-to-limit divisor to compact limit_buckets histograms in one pass, keeping the result within the configured limit while avoiding an extra halving pass.

Update the docs and add regression coverage for the 10 buckets to 4 buckets case.

Assisted-by: OpenAI Codex
@dmitryax dmitryax marked this pull request as ready for review June 11, 2026 16:26
@github-actions github-actions Bot added the processor/transform Transform processor label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

processor/transform Transform processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[processor/transform] Optimize limit_buckets compaction divisor

2 participants