elastic / apm-agent-dotnet

https://www.elastic.co/guide/en/apm/agent/dotnet/current/index.html
Apache License 2.0
573 stars 205 forks source link

Remove invalid profiler method integrations #2349

Closed stevejgordon closed 1 month ago

stevejgordon commented 1 month ago

In a default .NET Framework ASP.NET app, when adding the profiler auto-instrumentation, the profiler logs report:

[ERROR] No rejit method found for target: System.Data.SqlClient.SqlCommand.ExecuteNonQuery
[ERROR] No rejit method found for target: System.Data.SqlClient.SqlCommand.ExecuteScalar

On review, this is due to the instrumentation attempting to locate overloads of these methods accepting CommandBehavior. The only library where these seem to apply is System.Data.SQLite.