-
Notifications
You must be signed in to change notification settings - Fork 147
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
ADO.NET integration #248
ADO.NET integration #248
Conversation
a4127e8
to
b382e01
Compare
# Conflicts: # integrations.json
@@ -30,8 +30,8 @@ public void SubmitsTraces() | |||
Assert.True(spans.Count > 0, "expected at least one span"); | |||
foreach (var span in spans) | |||
{ | |||
Assert.Equal(SqlServerIntegration.OperationName, span.Name); | |||
Assert.Equal($"Samples.SqlServer-{SqlServerIntegration.ServiceName}", span.Service); | |||
Assert.Equal("sql-server.query", span.Name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we not also have integration tests for postgres?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The short answer is "time." Postgres support is time-sensitive. I tested Postgres manually and the SQL Server tests cover ADO.NET as well. I'm adding more automated integration tests for different ADO.NET providers in a separate PR.
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AdoNetIntegration.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@lucaspimentel Could you please explain how are you getting this signature for wrapper type? |
@hemant-learningforever: The work on this PR is finished and merged. Please ask questions by creating a new issue. EDIT: never mind, I just saw the issue you already created. |
Add a new integration that should cover all ADO.NET providers.
Tested with:
System.Data.SqlClient
(replaces current integration)Npgsql
Other ADO.NET providers (not tested yet):
System.Data.SqlServerCe