Skip to content

[receiver/sqlserver] Emit another metric for direct connection #39940

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

Merged
merged 4 commits into from
May 24, 2025

Conversation

crobert-1
Copy link
Member

Description

Before this PR the sqlserver.page.life_expectancy metric was only available when running on Windows as it was scraped from perf counters directly. This change enables the metric to be emitted also from directly connecting to SQL Server instances.

Testing

Updated existing testing. #39930 adds this metric in the configureAllScraperMetrics, otherwise it would have needed to be added here.

Documentation

Removed documentation note that this metric was only available on Windows.

@crobert-1 crobert-1 requested a review from a team as a code owner May 7, 2025 23:27
@crobert-1 crobert-1 requested a review from dashpole May 7, 2025 23:27
@github-actions github-actions bot added receiver/sqlserver Run Windows Enable running windows test on a PR labels May 7, 2025
@github-actions github-actions bot requested review from sincejune and StefanKurek May 7, 2025 23:27
@atoulme
Copy link
Contributor

atoulme commented May 8, 2025

Please resolve conflicts.

@atoulme atoulme marked this pull request as draft May 8, 2025 01:06
@crobert-1 crobert-1 force-pushed the sqlserver_page_life_expectancy branch from 243e52d to 7fcdf3f Compare May 8, 2025 15:05
@crobert-1
Copy link
Member Author

Please resolve conflicts.

Done 👍

@crobert-1 crobert-1 marked this pull request as ready for review May 8, 2025 15:05
@crobert-1 crobert-1 force-pushed the sqlserver_page_life_expectancy branch from b803cef to cd2e210 Compare May 15, 2025 19:36
@crobert-1
Copy link
Member Author

Ping @codeboten and @songy23 as PR assignees, I'm a code owner and this has already been approved by another code owner, this PR just needs sign off from an approver/maintainer.

Copy link
Contributor

@dehaansa dehaansa left a comment

Choose a reason for hiding this comment

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

LGTM.

@dehaansa dehaansa added the ready to merge Code review completed; ready to merge by maintainers label May 24, 2025
@songy23 songy23 merged commit 6e1f0f3 into open-telemetry:main May 24, 2025
248 checks passed
@github-actions github-actions bot added this to the next release milestone May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/sqlserver Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants