|
5 | 5 | --><extension xmlns="urn:newrelic-extension">
|
6 | 6 | <instrumentation>
|
7 | 7 |
|
8 |
| - <!-- ************************** DATABASE INSTRUMENTATION ***************************** --> |
9 |
| - |
10 | 8 | <!-- command methods -->
|
11 |
| - <tracerFactory name="NewRelic.Agent.Core.Tracer.Factories.Sql.DbCommandExecuteReaderTracerFactory"> |
12 |
| - |
| 9 | + <tracerFactory name="SqlCommandTracerAsync"> |
13 | 10 | <!-- MySqlConnector -->
|
14 | 11 | <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlCommand">
|
15 |
| - <exactMethodMatcher methodName="ExecuteReader" parameters="System.Data.CommandBehavior" /> |
16 |
| - <exactMethodMatcher methodName="ExecuteNonQuery" /> |
17 |
| - <exactMethodMatcher methodName="ExecuteScalar" /> |
| 12 | + <exactMethodMatcher methodName="ExecuteReaderAsync" parameters="System.Data.CommandBehavior,System.Threading.CancellationToken" /> |
| 13 | + <exactMethodMatcher methodName="ExecuteNonQueryAsync" parameters="System.Threading.CancellationToken" /> |
| 14 | + <exactMethodMatcher methodName="ExecuteScalarAsync" parameters="System.Threading.CancellationToken" /> |
| 15 | + <exactMethodMatcher methodName="ExecuteReaderAsync" parameters="System.Data.CommandBehavior,MySqlConnector.Protocol.Serialization.IOBehavior,System.Threading.CancellationToken" /> |
| 16 | + <exactMethodMatcher methodName="ExecuteNonQueryAsync" parameters="MySqlConnector.Protocol.Serialization.IOBehavior,System.Threading.CancellationToken" /> |
| 17 | + <exactMethodMatcher methodName="ExecuteScalarAsync" parameters="MySqlConnector.Protocol.Serialization.IOBehavior,System.Threading.CancellationToken" /> |
18 | 18 | </match>
|
19 |
| - |
20 | 19 | </tracerFactory>
|
21 | 20 |
|
22 |
| - <!-- DataReader methods. DISABLED by default due to possible performance impact. Set enabled to "true" (or omit completely) to enable this instrumentation. --> |
23 |
| - <tracerFactory name="NewRelic.Agent.Core.Tracer.Factories.Sql.DataReaderTracerFactory" level="1" enabled="false"> |
24 |
| - |
| 21 | + <!-- DataReader methods. DISABLED by default due to possible performance impact. Set enabled to "true" (or omit completely) to enable this instrumentation. --> |
| 22 | + <tracerFactory name="DataReaderTracer" enabled="false"> |
25 | 23 | <!-- MySqlConnector -->
|
26 | 24 | <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlDataReader">
|
27 | 25 | <exactMethodMatcher methodName="NextResult" />
|
28 | 26 | <exactMethodMatcher methodName="Read" />
|
29 | 27 | </match>
|
30 |
| - |
31 | 28 | </tracerFactory>
|
32 | 29 |
|
33 |
| - <!-- DbConnection.Open() --> |
34 |
| - <tracerFactory> |
35 |
| - |
| 30 | + <tracerFactory name="DataReaderTracerAsync" enabled="false"> |
36 | 31 | <!-- MySqlConnector -->
|
37 |
| - <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlConnection"> |
38 |
| - <exactMethodMatcher methodName="Open" /> |
39 |
| - <exactMethodMatcher methodName="OpenAsync" parameters="System.Threading.CancellationToken" /> |
40 |
| - </match> |
41 |
| - |
42 |
| - </tracerFactory> |
43 |
| - |
44 |
| - <tracerFactory> |
45 |
| - <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlCommand"> |
46 |
| - <exactMethodMatcher methodName="ExecuteReaderAsync" parameters="System.Data.CommandBehavior,System.Threading.CancellationToken" /> |
47 |
| - <exactMethodMatcher methodName="ExecuteNonQueryAsync" parameters="System.Threading.CancellationToken" /> |
48 |
| - <exactMethodMatcher methodName="ExecuteScalarAsync" parameters="System.Threading.CancellationToken" /> |
49 |
| - </match> |
50 |
| - </tracerFactory> |
51 |
| - |
52 |
| - <tracerFactory enabled="false"> |
53 | 32 | <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlDataReader">
|
54 | 33 | <exactMethodMatcher methodName="NextResultAsync" />
|
55 | 34 | <exactMethodMatcher methodName="ReadAsync" />
|
56 | 35 | </match>
|
| 36 | + </tracerFactory> |
57 | 37 |
|
| 38 | + <!-- DbConnection.Open() --> |
| 39 | + <tracerFactory name="OpenConnectionTracer"> |
| 40 | + <!-- MySqlConnector --> |
| 41 | + <match assemblyName="MySqlConnector" className="MySql.Data.MySqlClient.MySqlConnection"> |
| 42 | + <exactMethodMatcher methodName="Open" /> |
| 43 | + </match> |
58 | 44 | </tracerFactory>
|
59 | 45 |
|
60 | 46 | </instrumentation>
|
|
0 commit comments