Skip to content

Commit de6e901

Browse files
stebetcheenamalhotra
authored andcommitted
Fix | Fixing incorrect event id and opcode for the SqlEventSource. (#241)
1 parent 0ae4f71 commit de6e901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlEventSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private SqlEventSource()
5151
// the EventSource activity IDs (because they currently don't use tasks and this simply confuses the logic) and
5252
// because of versioning requirements we don't have ActivityOptions capability (because mscorlib and System.Data version
5353
// at different rates) Sigh...
54-
[Event(SqlEventSource.EndExecuteEventId, Keywords = Keywords.SqlClient, Task = Tasks.ExecuteCommand, Opcode = EventOpcode.Stop)]
54+
[Event(SqlEventSource.BeginExecuteEventId, Keywords = Keywords.SqlClient, Task = Tasks.ExecuteCommand, Opcode = EventOpcode.Start)]
5555
public void BeginExecute(int objectId, string dataSource, string database, string commandText)
5656
{
5757
// we do not use unsafe code for better performance optization here because optimized helpers make the code unsafe where that would not be the case otherwise.

0 commit comments

Comments
 (0)