forked from DataDog/dd-trace-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand ADO.NET instrumentation (DbCommand, SqlCommand) (DataDog#516)
* rewrite SqlServer sample app * clean up code * clean up AdoNetIntegration * add new SqlClientIntegration * intercept more method calls in AdoNetIntegration * make StyleCop allow custom ordering in integrations * clean up xml-doc comments, add missing ones * add Samples.DbCommand project * fix SqlServerTests, add DbCommandTests * fix bad merge * run DbCommand integration tests * fix build for netcoreapp3.0 * rename Samples.SqlServer to Samples.SqlCommand everywhere * fix target type * refactor ExecuteReader() overloads * fix filters * rename method * set project dependencies so managed profiler assembly is built when building samples in VS * refactor common logic in db tests into Samples.DatabaseHelper project * fix sample env vars * sleep for a short time between sync and async method calls * override target method name * fix signature * fix target signature Co-Authored-By: Zach Montoya <zach.montoya@datadoghq.com> * group ado.net tests into their own folder * regenerate integrations and package version files * fix span counts and filter by operation name * fix timezone bug that caused tests to fail in Paris * rename test harness class * remove Samples.DbCommand and DbCommandTests, rename Samples.SqlCommand to Samples.SqlServer * update package versions * delete unused file * refactor creating new connections * allow skipping some callbacks * refactor MySql and Npgsql integrations to use the new db test hardness * add new integration tests for MySql and Npgsql * add assertions for DbType tag * missed a few renames from Samples.SqlCommand to Samples.SqlServer * remove Samples.DbCommand from docker-compose and scripts * move AdoNet files into their own directory * fix namespaces * rename AdoNetIntegration to DbCommandIntegration * fix package name Co-Authored-By: Zach Montoya <zach.montoya@datadoghq.com> * remove "RunOnWindows" trait * RunOnWindows * fix sample name Co-Authored-By: Zach Montoya <zach.montoya@datadoghq.com> * add comment * delete file that was moved into the AdoNet folder * build Samples.MySql before running tests * test single version of MySql client for now * fix errors from bad merge * update sql server docker image * update comment * add more tags to manual spans * add a root span for the entire sample execution * fix span names, assert on expected span count * sign into default sql server database * run Npgsql (PostgreSQL) test only on single library version until we have a proper integration (like MySQL) * fix default database name * refactor tests to use more constants and fix copy/paste mistakes * change query to work in PostgreSQL * use correct MySql database name * skip the new MySQL tests for now
- Loading branch information
1 parent
c8bd7f7
commit 56dd206
Showing
28 changed files
with
2,578 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.