Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit ab32e10

Browse files
committed
Make changes from Rasmus
1 parent 2de72d6 commit ab32e10

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

gdi/get-data-in/application/otel-dotnet/instrumentation/advanced-config-iis-apps.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Advanced configuration for IIS applications
66

77
Follow these advanced configuration steps to make changes to specific application pools.
88

9-
Set resource attributes
10-
=======================
9+
Set environment variables
10+
=========================
1111

12-
You can set the resource attributes for specific application pools in the ``environmentVariables`` block of the :new-page:`applicationHost.config file <https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/applicationpools/add/environmentvariables/#configuration-sample>`.
12+
You can set environment variables for specific application pools in the ``environmentVariables`` block of the :new-page:`applicationHost.config file <https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/applicationpools/add/environmentvariables/#configuration-sample>`.
1313

1414
For example:
1515

@@ -19,14 +19,16 @@ For example:
1919
<add name="OTEL_RESOURCE_ATTRIBUTES" value="deployment.environment=test,service.version=1.0.0" />
2020
</environmentVariables>
2121
22+
For all IIS applications, consider setting common environment variables for W3SVC and WAS Windows Services. For more information, see :new-page:`Instrument a Windows Service running a .NET application <https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/blob/main/docs/windows-service-instrumentation.md>` in the OpenTelemetry documentation.
23+
2224
.. note::
2325

24-
If you set the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable in the ``environmentVariable`` block and in the web.config ``appSettings`` block, the value in the ``environmentVariables`` block takes precedence.
26+
If the same environment variables are set in the ``environmentVariable`` block and in the web.config ``appSettings`` block, the value in the ``environmentVariables`` block takes precedence.
2527

2628
Active or deactivate instrumentation
2729
=====================================
2830

29-
Use the PowerShell module to activate or deactivate the instrumentation for specific application pools.
31+
For .NET Framework applications, use the PowerShell module to activate or deactivate the instrumentation for specific application pools.
3032

3133
#. Import the PowerShell module:
3234

0 commit comments

Comments
 (0)