Skip to content

Commit 6c52c0f

Browse files
committed
wp
1 parent 928a36f commit 6c52c0f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/OpenTelemetry.AutoInstrumentation/Configurations/InstrumentationOptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ internal InstrumentationOptions(Configuration configuration)
1717
AspNetInstrumentationCaptureRequestHeaders = configuration.ParseHeaders(ConfigurationKeys.Traces.InstrumentationOptions.AspNetInstrumentationCaptureRequestHeaders, AdditionalTag.CreateHttpRequestCache);
1818
AspNetInstrumentationCaptureResponseHeaders = configuration.ParseHeaders(ConfigurationKeys.Traces.InstrumentationOptions.AspNetInstrumentationCaptureResponseHeaders, AdditionalTag.CreateHttpResponseCache);
1919
SqlClientNetFxIlRewriteEnabled = configuration.GetBool(ConfigurationKeys.Traces.InstrumentationOptions.SqlClientNetFxILRewriteEnabled) ?? false;
20-
NativeMethods.SetSqlClientNetFxILRewriteEnabled(SqlClientNetFxIlRewriteEnabled);
2120
#endif
2221
#if NET
2322
AspNetCoreInstrumentationCaptureRequestHeaders = configuration.ParseHeaders(ConfigurationKeys.Traces.InstrumentationOptions.AspNetCoreInstrumentationCaptureRequestHeaders, AdditionalTag.CreateHttpRequestCache);
@@ -46,7 +45,6 @@ internal InstrumentationOptions(DotNetTraces? instrumentationConfiguration)
4645
if (instrumentationConfiguration.SqlClient != null)
4746
{
4847
SqlClientNetFxIlRewriteEnabled = instrumentationConfiguration.SqlClient.NetFxIlRewriteEnabled;
49-
NativeMethods.SetSqlClientNetFxILRewriteEnabled(SqlClientNetFxIlRewriteEnabled);
5048
}
5149
#endif
5250
#if NET

0 commit comments

Comments
 (0)