8000 Update SQL server to TagManager by sethsamuel · Pull Request #20424 · DataDog/integrations-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update SQL server to TagManager #20424

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

Conversation

sethsamuel
Copy link
Contributor
@sethsamuel sethsamuel commented Jun 2, 2025

What does this PR do?

  • Migrates the SQLServer integration to use the new TagManager
  • Fixes a race condition with certain database identifier template variables

Motivation

Previously certain tags were set before the static info cache had been populated. This led to placeholders appearing in database instance identifiers.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link
codecov bot commented Jun 3, 2025

Codecov Report

Attention: Patch coverage is 97.34513% with 3 lines in your changes missing coverage. Please review.

Project coverage is 90.32%. Comparing base (baeffa3) to head (8a45c0c).
Report is 14 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
confluent_platform ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?
sqlserver 91.26% <97.34%> (+4.48%) ⬆️
tomcat ?
weblogic ?

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
10000

@@ -322,7 +321,7 @@ def _rows_to_raw_statement_events(self, rows):
"ddagentversion": datadog_agent.get_version(),
"ddsource": "sqlserver",
"dbm_type": "rqt",
"ddtags": ",".join(self.tags),
"ddtags": ",".join(self._check.tag_manager.get_tags()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this use ",".join() but all other events just pass the tag list? I know it's how it was previously but curious if it matters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea, some sort of legacy choice that we could try and clean up

sethsamuel and others added 4 commits June 3, 2025 10:54
Co-authored-by: Eric Weaver <eweaver755@gmail.com>
Co-authored-by: Eric Weaver <eweaver755@gmail.com>
Co-authored-by: Eric Weaver <eweaver755@gmail.com>
@sethsamuel sethsamuel requested a review from eric-weaver June 3, 2025 15:01
@sethsamuel
Copy link
Contributor Author

/merge

@dd-devflow
Copy link
dd-devflow bot commented Jun 3, 2025

View all feedbacks in Devflow UI.

2025-06-03 15:26:59 UTC ℹ️ Start processing command /merge


2025-06-03 15:27:12 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-06-03 19:28:07 UTC ⚠️ MergeQueue: This merge request was unqueued

devflow unqueued this merge request: It did not beco 8000 me mergeable within the expected time

@sethsamuel sethsamuel added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit 766f717 Jun 4, 2025
50 of 61 checks passed
@sethsamuel sethsamuel deleted the seth.samuel/DBMON-5424-sql-server-database-identifier-variables-are-resolved-after-certain-tags-are-set branch June 4, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0