You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[receiver/sqlserver] Ensure all enabled metrics are emitted (open-telemetry#38839)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
When directly connecting to SQL Server, this receiver runs multiple
queries to get enabled metrics. Each query is only run if one or more
metric is enabled for that particular query. The bug here was that some
metrics weren't properly being checked to see if they were enabled. This
means that in some cases, if a subset of metrics were enabled, the query
wouldn't be run, and the metrics wouldn't be recorded or emitted.
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added a test to ensure whenever new metrics are added, the
`setupQueries` method gets changed as well. If we continue to hit more
bugs with this we may want to just always run the queries, even if
there's a slight performance hit.
0 commit comments