Skip to content

Commit b465084

Browse files
committed
Adjust tests to new sem conv
1 parent 1d93cd3 commit b465084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IntegrationTests/SqlClientSystemDataTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public void SqlClientIlRewrite(bool enableIlRewrite)
4040

4141
if (enableIlRewrite)
4242
{
43-
collector.Expect("OpenTelemetry.Instrumentation.SqlClient", span => span.Attributes.Any(attr => attr.Key == "db.statement" && !string.IsNullOrWhiteSpace(attr.Value?.StringValue)));
43+
collector.Expect("OpenTelemetry.Instrumentation.SqlClient", span => span.Attributes.Any(attr => attr.Key == "db.query.text" && !string.IsNullOrWhiteSpace(attr.Value?.StringValue)));
4444
}
4545
else
4646
{
47-
collector.Expect("OpenTelemetry.Instrumentation.SqlClient", span => span.Attributes.All(attr => attr.Key != "db.statement"));
47+
collector.Expect("OpenTelemetry.Instrumentation.SqlClient", span => span.Attributes.All(attr => attr.Key != "db.query.text"));
4848
}
4949

5050
RunTestApplication();

0 commit comments

Comments
 (0)