Skip to content

Commit

Permalink
Adjust New Relic custom instrumentation.
Browse files Browse the repository at this point in the history
Try to remove "DEBUG" warnings from the New Relic log with the previous file under .NET Agent 6.0.0.0.
  • Loading branch information
bgrainger committed Sep 26, 2016
1 parent f0b7ef3 commit 7d95d9b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions contrib/NewRelic/MySqlConnector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
<!-- MySqlConnector -->
<match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlCommand">
<exactMethodMatcher methodName="ExecuteReader" parameters="System.Data.CommandBehavior" />
<exactMethodMatcher methodName="ExecuteReaderAsync" parameters="System.Data.CommandBehavior,System.Threading.CancellationToken" />
<exactMethodMatcher methodName="ExecuteNonQuery" />
<exactMethodMatcher methodName="ExecuteNonQueryAsync" />
<exactMethodMatcher methodName="ExecuteScalar" />
<exactMethodMatcher methodName="ExecuteScalarAsync" />
</match>

</tracerFactory>
Expand All @@ -28,9 +25,7 @@
<!-- MySqlConnector -->
<match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlDataReader">
<exactMethodMatcher methodName="NextResult" />
<exactMethodMatcher methodName="NextResultAsync" />
<exactMethodMatcher methodName="Read" />
<exactMethodMatcher methodName="ReadAsync" />
</match>

</tracerFactory>
Expand All @@ -46,5 +41,20 @@

</tracerFactory>

<tracerFactory name="NewRelic.Providers.Wrapper.CustomInstrumentationAsync.DefaultWrapperAsync">

<match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlCommand">
<exactMethodMatcher methodName="ExecuteReaderAsync" parameters="System.Data.CommandBehavior,System.Threading.CancellationToken" />
<exactMethodMatcher methodName="ExecuteNonQueryAsync" />
<exactMethodMatcher methodName="ExecuteScalarAsync" />
</match>

<match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlDataReader">
<exactMethodMatcher methodName="NextResultAsync" />
<exactMethodMatcher methodName="ReadAsync" />
</match>

</tracerFactory>

</instrumentation>
</extension>

0 comments on commit 7d95d9b

Please sign in to comment.