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

Commit 02f04b1

Browse files
initial commit
1 parent bbe0cc1 commit 02f04b1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ Windows
6363
# Install the Splunk distribution using the PowerShell module
6464
Install-OpenTelemetryCore
6565
66-
#. Register the distribution:
66+
#. Register the distribution according to the type of application you're instrumenting:
6767

6868
.. tabs::
6969

70-
.. code-tab:: shell .NET application
70+
.. code-tab:: shell .NET and .NET Framework Applications
7171

7272
# Set up environment to start instrumentation from the current PowerShell session
7373
Register-OpenTelemetryForCurrentSession -OTelServiceName "<your-service-name>"
@@ -87,7 +87,7 @@ Windows
8787

8888
.. tabs::
8989

90-
.. tab:: .NET application
90+
.. tab:: .NET and .NET Framework
9191

9292
.. code-block:: powershell
9393
@@ -96,7 +96,9 @@ Windows
9696
9797
Run your application after setting the attribute.
9898

99-
.. tab:: IIS application (ASP.NET)
99+
.. note:: This command instruments any applications launched in the same powershell session. It won't instrument applications in a different powershell session.
100+
101+
.. tab:: IIS (ASP.NET)
100102

101103
For ASP.NET applications, configure the service name and resource attributes in the ``appSettings`` block of the web.config file:
102104

@@ -130,7 +132,7 @@ Windows
130132
.. note::
131133
If the ``OTEL_SERVICE_NAME`` or ``OTEL_RESOURCE_ATTRIBUTES`` environment variables are set for a process, settings with the same names from ``appSettings`` block of web.config are ignored.
132134

133-
.. tab:: IIS application (ASP.NET Core)
135+
.. tab:: IIS (ASP.NET Core)
134136

135137
For ASP.NET Core applications hosted in IIS, the service name and resource attributes can be configured using the ``environmentVariables`` block of the :new-page:`web.config file <https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/web-config?view=aspnetcore-8.0#set-environment-variables>`. For example:
136138

0 commit comments

Comments
 (0)