Skip to content
Browse files
Fix | Fixing incorrect event id and opcode for the SqlEventSource. (#241
  • Loading branch information
stebet authored and cheenamalhotra committed Oct 4, 2019
1 parent 0ae4f71 commit de6e901c8c24f5fa55f1aaaee5f60380416ad3e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlEventSource.cs
@@ -51,7 +51,7 @@ private SqlEventSource()
// the EventSource activity IDs (because they currently don't use tasks and this simply confuses the logic) and
// because of versioning requirements we don't have ActivityOptions capability (because mscorlib and System.Data version
// at different rates) Sigh...
[Event(SqlEventSource.EndExecuteEventId, Keywords = Keywords.SqlClient, Task = Tasks.ExecuteCommand, Opcode = EventOpcode.Stop)]
[Event(SqlEventSource.BeginExecuteEventId, Keywords = Keywords.SqlClient, Task = Tasks.ExecuteCommand, Opcode = EventOpcode.Start)]
public void BeginExecute(int objectId, string dataSource, string database, string commandText)
// 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 comments on commit de6e901

Please sign in to comment.