Skip to content

Conversation

cuichenli
Copy link
Member

Description

When exporting data to elasticsearch, we got error say data are duplicated. And turns out the perf counter query could return two rows for page life expectancy, they could have identicial value but with different object name. Hence added one attribute to deduplicate the data.

Link to tracking issue

Fixes

Testing

Documentation

@cuichenli cuichenli requested review from crobert-1 and a team as code owners May 29, 2025 03:31
@github-actions github-actions bot added receiver/sqlserver Run Windows Enable running windows test on a PR labels May 29, 2025
@github-actions github-actions bot requested review from sincejune and StefanKurek May 29, 2025 03:32
@cuichenli
Copy link
Member Author

updated, please take another look. thanks! @crobert-1

@crobert-1
Copy link
Member

CI failure:

Error: ./recorders.go:76:55: not enough arguments in call to mb.RecordSqlserverPageLifeExpectancyDataPoint
	have (pcommon.Timestamp, int64)
	want (pcommon.Timestamp, int64, string) (typecheck)

@atoulme atoulme marked this pull request as draft May 31, 2025 06:53
@atoulme
Copy link
Contributor

atoulme commented May 31, 2025

Moving to draft while you work on the CI, please mark ready for review once addressed.

@cuichenli cuichenli marked this pull request as ready for review May 31, 2025 13:48
@cuichenli
Copy link
Member Author

Moving to draft while you work on the CI, please mark ready for review once addressed.

the ci pass now

@atoulme atoulme merged commit fc2eef0 into open-telemetry:main Jun 2, 2025
213 checks passed
@github-actions github-actions bot added this to the next release milestone Jun 2, 2025
dd-jasminesun pushed a commit to DataDog/opentelemetry-collector-contrib that referenced this pull request Jun 23, 2025
…ctancy (open-telemetry#40359)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
When exporting data to elasticsearch, we got error say data are
duplicated. And turns out the perf counter query could return two rows
for page life expectancy, they could have identicial value but with
different `object` name. Hence added one attribute to deduplicate the
data.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/sqlserver Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants