Skip to content

[exporterhelper] Fix metric name preservation during request splitting #13238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lsj4401
Copy link

@lsj4401 lsj4401 commented Jun 19, 2025

Description

This PR fixes an issue in exporter/exporterhelper's sending_queue where metric names were lost during metricRequest splitting. Previously, when large batches of metrics were processed, the splitting logic in metric_batch.go could cause the name field of some metrics to disappear. This fix ensures that all metric fields are properly preserved when metricRequest objects are split.

Link to tracking issue

Fixes #13236

Resolve an issue in  where metric names were lost when splitting  objects. Updated logic now ensures all metric fields, including names, are retained across splitting operations. Added relevant tests to validate the fix.
@lsj4401 lsj4401 requested review from bogdandrutu, dmitryax and a team as code owners June 19, 2025 15:28
Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

If there is a bug please add a test to reproduce it

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.

Metric names disappear when metricRequest is split in metric_batch.go with sending_queue
2 participants