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

Commit 527ade2

Browse files
Merge pull request #2145 from splunk/mbechtold-25023-dotnet-frameworks-zc
[DG-25023] .NET Framework instrumentation notes
2 parents d49d468 + 4185944 commit 527ade2

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
@@ -71,11 +71,11 @@ Windows
7171
# Install the Splunk distribution using the PowerShell module
7272
Install-OpenTelemetryCore
7373
74-
#. Register the distribution:
74+
#. Register the distribution according to the type of application you're instrumenting:
7575

7676
.. tabs::
7777

78-
.. code-tab:: shell .NET application
78+
.. code-tab:: shell .NET and .NET Framework Applications
7979

8080
# Set up environment to start instrumentation from the current PowerShell session
8181
Register-OpenTelemetryForCurrentSession -OTelServiceName "<your-service-name>"
@@ -95,7 +95,7 @@ Windows
9595

9696
.. tabs::
9797

98-
.. tab:: .NET application
98+
.. tab:: .NET and .NET Framework
9999

100100
.. code-block:: powershell
101101
@@ -104,7 +104,9 @@ Windows
104104
105105
Run your application after setting the attribute.
106106

107-
.. tab:: IIS application (ASP.NET)
107+
.. note:: This command instruments any applications launched in the same PowerShell session. It won't instrument applications in a different PowerShell session.
108+
109+
.. tab:: IIS (ASP.NET)
108110

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

@@ -138,7 +140,7 @@ Windows
138140
.. note::
139141
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.
140142

141-
.. tab:: IIS application (ASP.NET Core)
143+
.. tab:: IIS (ASP.NET Core)
142144

143145
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:
144146

0 commit comments

Comments
 (0)