@@ -26,28 +26,28 @@ public static class TracerProviderBuilderExtensions
26
26
[ RequiresUnreferencedCode ( SqlClientInstrumentation . SqlClientTrimmingUnsupportedMessage ) ]
27
27
#endif
28
28
public static TracerProviderBuilder AddSqlClientInstrumentation ( this TracerProviderBuilder builder )
29
- => AddSqlClientInstrumentation ( builder , name : null , configureSqlClientInstrumentationOptions : null ) ;
29
+ => AddSqlClientInstrumentation ( builder , name : null , configureSqlClientTraceInstrumentationOptions : null ) ;
30
30
31
31
/// <summary>
32
32
/// Enables SqlClient instrumentation.
33
33
/// </summary>
34
34
/// <param name="builder"><see cref="TracerProviderBuilder"/> being configured.</param>
35
- /// <param name="configureSqlClientInstrumentationOptions ">Callback action for configuring <see cref="SqlClientInstrumentationOptions "/>.</param>
35
+ /// <param name="configureSqlClientTraceInstrumentationOptions ">Callback action for configuring <see cref="SqlClientTraceInstrumentationOptions "/>.</param>
36
36
/// <returns>The instance of <see cref="TracerProviderBuilder"/> to chain the calls.</returns>
37
37
#if NET6_0_OR_GREATER
38
38
[ RequiresUnreferencedCode ( SqlClientInstrumentation . SqlClientTrimmingUnsupportedMessage ) ]
39
39
#endif
40
40
public static TracerProviderBuilder AddSqlClientInstrumentation (
41
41
this TracerProviderBuilder builder ,
42
- Action < SqlClientInstrumentationOptions > configureSqlClientInstrumentationOptions )
43
- => AddSqlClientInstrumentation ( builder , name : null , configureSqlClientInstrumentationOptions ) ;
42
+ Action < SqlClientTraceInstrumentationOptions > configureSqlClientTraceInstrumentationOptions )
43
+ => AddSqlClientInstrumentation ( builder , name : null , configureSqlClientTraceInstrumentationOptions ) ;
44
44
45
45
/// <summary>
46
46
/// Enables SqlClient instrumentation.
47
47
/// </summary>
48
48
/// <param name="builder"><see cref="TracerProviderBuilder"/> being configured.</param>
49
49
/// <param name="name">Name which is used when retrieving options.</param>
50
- /// <param name="configureSqlClientInstrumentationOptions ">Callback action for configuring <see cref="SqlClientInstrumentationOptions "/>.</param>
50
+ /// <param name="configureSqlClientTraceInstrumentationOptions ">Callback action for configuring <see cref="SqlClientTraceInstrumentationOptions "/>.</param>
51
51
/// <returns>The instance of <see cref="TracerProviderBuilder"/> to chain the calls.</returns>
52
52
#if NET6_0_OR_GREATER
53
53
[ RequiresUnreferencedCode ( SqlClientInstrumentation . SqlClientTrimmingUnsupportedMessage ) ]
@@ -56,20 +56,20 @@ public static TracerProviderBuilder AddSqlClientInstrumentation(
56
56
public static TracerProviderBuilder AddSqlClientInstrumentation (
57
57
this TracerProviderBuilder builder ,
58
58
string name ,
59
- Action < SqlClientInstrumentationOptions > configureSqlClientInstrumentationOptions )
59
+ Action < SqlClientTraceInstrumentationOptions > configureSqlClientTraceInstrumentationOptions )
60
60
{
61
61
Guard . ThrowIfNull ( builder ) ;
62
62
63
63
name ??= Options . DefaultName ;
64
64
65
- if ( configureSqlClientInstrumentationOptions != null )
65
+ if ( configureSqlClientTraceInstrumentationOptions != null )
66
66
{
67
- builder . ConfigureServices ( services => services . Configure ( name , configureSqlClientInstrumentationOptions ) ) ;
67
+ builder . ConfigureServices ( services => services . Configure ( name , configureSqlClientTraceInstrumentationOptions ) ) ;
68
68
}
69
69
70
70
builder . AddInstrumentation ( sp =>
71
71
{
72
- var sqlOptions = sp . GetRequiredService < IOptionsMonitor < SqlClientInstrumentationOptions > > ( ) . Get ( name ) ;
72
+ var sqlOptions = sp . GetRequiredService < IOptionsMonitor < SqlClientTraceInstrumentationOptions > > ( ) . Get ( name ) ;
73
73
74
74
return new SqlClientInstrumentation ( sqlOptions ) ;
75
75
} ) ;
0 commit comments