File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments