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

Commit 7b61dbf

Browse files
Merge pull request #1396 from pjanotti/patch-3
Multiple apps in the same IIS App Pool can't use appSettings for configuration
2 parents 5978e29 + 4111db3 commit 7b61dbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gdi/get-data-in/application/otel-dotnet/instrumentation/instrument-dotnet-application.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ Windows
110110
.. note::
111111
If ``OTEL_SERVICE_NAME`` is not set for a web application hosted in IIS, the inferred name based on the site name and virtual directory path is used.
112112

113+
.. note::
114+
If multiple applications are running in the same IIS Application Pool do not use the ``appSettings`` block of the web.config file to configure any environment variable. Let the instrumentation infer the name and use the Application Pool environment variables configuration, see below, to set the resource attributes (which will be shared by all applications in the Application Pool).
115+
113116
After modifying the web.config file, restart IIS:
114117

115118
.. code-block:: powershell

0 commit comments

Comments
 (0)