opentelemetry-dotnet/src/OpenTelemetry.Instrumentati.../web.config.uninstall.xdt

18 lines
1008 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web xdt:Locator="XPath(//system.web[(count(parent::location) = 0) or (count(parent::location[@path != '.' and count(@path) != 0]) = 0)])">
<httpModules>
<add name="TelemetryHttpModule" type="OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule, OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule" preCondition="managedHandler" xdt:Transform="Remove" xdt:Locator="Match(type)"/>
</httpModules>
</system.web>
<system.webServer>
<modules>
<remove name="TelemetryHttpModule" xdt:Transform="Remove" xdt:Locator="Match(name)"/>
<add name="TelemetryHttpModule"
type="OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule, OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule"
preCondition="managedHandler" xdt:Transform="Remove" xdt:Locator="Match(type)"/>
</modules>
</system.webServer>
</configuration>