Upgrading the .NET Agent
AppOptics agents are no longer receiving updates. The new SolarWinds Observability libraries are regularly updated with new features and improvements. If you are still relying on the AppOptics agents and your components are supported by the new libraries, consider migrating to SolarWinds Observability.
SolarWinds Observability Libraries are not compatible with AppOptics agents. Do not use a mix of SolarWinds Observability Libraries and AppOptics agents to instrument applications that are part of a distributed trace.
Upgrading to the SolarWinds Observability .NET Library
The .NET Instrumentation Library for SolarWinds Observability is compatible with the AppOptics collector. SolarWinds Observability libraries are not compatible with AppOptics agents. Do not use a mix of SolarWinds Observability libraries and AppOptics agents to instrument applications that are part of a distributed trace.
Complete migration
SolarWinds recommends that you migrate completely from AppOptics to SolarWinds Observability. For more information about a complete migrations, see Migrate from AppOptics to SolarWinds Observability SaaS. To upgrade to the SolarWinds Observability .NET Library as part of a complete migration, see Migrate the .NET Library from AppOptics to SolarWinds Observability.
Partial migration
Alternatively, you can upgrade to the SolarWinds Observability .NET Library but send data to AppOptics.
Migrate from AppOptics on Windows
-
Stop the applications that are being instrumented (for example, Windows services and IIS).
To stop IIS, run the command
iisreset /stop
. -
Uninstall the AppOptics .NET Agent.
-
Download the installer, and install the SolarWindsAPM .NET Library.
-
Set a valid AppOptics service key. See the SolarWinds Observability configuration options for the new configuration file and environment variable names.
-
Set the collector configuration option to the AppOptics endpoint
collector.appoptics.com:443
. Use a config option or an environment variable to override the default APM collector endpoint. -
If you have custom configurations in the AppOptics .NET Library configuration file, you can copy them to the SolarWindsAPM .NET Agent configuration file. For example, you can copy configuration sections such as
application
elements.The API token portion of the
serviceKey
attribute must be updated to be a valid SolarWinds Observability token.The configuration files can be found in the following locations:
-
AppOptics:
%PROGRAMFILES%/AppOptics/APM/dotnet/agent.config
-
SolarWinds Observability:
%PROGRAMFILES%/SolarWinds/APM/dotnet/solarwinds_apm.config
For more information on configuration settings, see Configure the .NET Library.
-
-
Start the applications to be instrumented (for example, Windows services and IIS).
To start IIS, run the command
iisreset /start
.
Migrate from AppOptics on Linux
-
Stop the applications that are being instrumented.
-
Remove the AppOptics .NET Agent files.
The default location is
${HOME}/appoptics
, but the files can be installed elsewhere. -
Download from the installer from https://agent-binaries.cloud.solarwinds.com/apm/dotnet/latest/solarwinds-apm-dotnet-agent-package.tgz. Then install the SolarWindsAPM .NET Agent.
-
Set a valid AppOptics service key. See the SolarWinds Observability configuration options for the new configuration file and environment variable names.
-
Set the collector configuration option to the AppOptics endpoint
collector.appoptics.com:443
. Use a config option or an environment variable to override the default APM collector endpoint. -
Update the environment variables.
-
If you have custom configurations in the AppOptics .NET Agent configuration file, you can copy them to the SolarWindsAPM .NET Agent configuration file. For example, you can copy configuration sections such as
application
elements.The API token portion of the
serviceKey
attribute must be updated to be a valid SolarWinds Observability token.The configuration files can be found in the following locations:
-
AppOptics:
agent.config
-
SolarWinds Observability:
solarwinds_apm.config
For more information on configuration settings, see Configure the .NET Library.
-
-
Start the applications.
Upgrade to a newer version of the legacy AppOptics Agent
Upgrading IIS Only instrumentation
- Run
iisreset /STOP
to stop IIS - Run the uninstaller:
C:\Program Files\AppOptics\APM\dotnet\unins000.exe
The uninstaller filename has the formatunins<nnn>.exe
wherennn
will increment on reinstalls. - Download the latest .NET Agent from https://files.appoptics.com/dotnet/DotNetAgent_Setup.exe
- Run the new installer
- Run
iisreset /START
to start IIS
Upgrading IIS and non-IIS instrumentation
These steps document how to upgrade the .NET agent when both IIS and non-IIS services are being instrumented.
- Run
iisreset /STOP
to stop IIS - Stop services configured in the applications section of the
agent.config
file - Run the uninstaller:
C:\Program Files\AppOptics\APM\dotnet\unins000.exe
- Download the latest .NET Agent from https://files.appoptics.com/dotnet/DotNetAgent_Setup.exe
- Run the new .NET agent installer
- Run
iisreset /START
to start IIS - Restart any services stopped in Step 2
AppOptics.Instrumentation NuGet Package
The AppOptics.Instrumentation NuGet package has been deprecated and is no longer supported. The package has been replaced with the AppOptics.Agent NuGet package. In addition to providing the same functionality as the AppOptics.Instrumentation NuGet package, the AppOptics.Agent package also provides automatic instrumentation support. See AppOptics.Agent NuGet package (legacy agent).