From 21075dbff05168f0d86ff99859303b0216c8a1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stef=C3=A1n=20J=2E=20Sigur=C3=B0arson?= Date: Thu, 3 Oct 2019 08:56:40 +0000 Subject: [PATCH] Fixing incorrect event id and opcode for the SqlEventSource. --- .../netfx/src/Microsoft/Data/SqlEventSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlEventSource.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlEventSource.cs index c2921a734d..2135c362e5 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlEventSource.cs +++ b/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.