Skip to content

add condition in DBM MSSQL to check full mode + temp disable#2903

Merged
vandonr merged 3 commits into
mainfrom
vandonr/sys
Sep 5, 2024
Merged

add condition in DBM MSSQL to check full mode + temp disable#2903
vandonr merged 3 commits into
mainfrom
vandonr/sys

Conversation

@vandonr
Copy link
Copy Markdown
Contributor

@vandonr vandonr commented Aug 21, 2024

Motivation

This is the PR that will fix system tests after DataDog/dd-trace-dotnet#5859 is merged

Changes

We're adding support for full injection for MS SQL queries in dotnet. Thus, we need to assert that it's done in the system test.

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

@vandonr vandonr changed the title add condition in DBM MSSQL to check full mode for dotnet add condition in DBM MSSQL to check full mode for dotnet + temp disable Sep 4, 2024
@vandonr vandonr changed the title add condition in DBM MSSQL to check full mode for dotnet + temp disable [dotnet] add condition in DBM MSSQL to check full mode + temp disable Sep 4, 2024
@vandonr vandonr marked this pull request as ready for review September 4, 2024 14:56
@vandonr vandonr requested a review from a team as a code owner September 4, 2024 14:56
span = self._get_db_span(request)

if span.get("meta", {}).get("db.type") == "sql-server":
# full mode for sql server is supported in dotnet (via the context_info)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The test logic is modified -> do not use [dotnet] in title 😉

@cbeauchesne cbeauchesne changed the title [dotnet] add condition in DBM MSSQL to check full mode + temp disable add condition in DBM MSSQL to check full mode + temp disable Sep 5, 2024
@cbeauchesne
Copy link
Copy Markdown
Collaborator

Rebasing to retrigger the CI

@vandonr vandonr merged commit 273e36e into main Sep 5, 2024
@vandonr vandonr deleted the vandonr/sys branch September 5, 2024 09:17
mtoffl01 pushed a commit that referenced this pull request Sep 11, 2024
* temp disable of test while we change the behavior in dotnet

* use missing feature instead to have the test run

---------

Co-authored-by: Charles de Beauchesne <charles.debeauchesne@datadoghq.com>
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.

3 participants