Using SL Multiprofiler with DataDog on IIS (Windows)
This page will help you configure Sealights Multiprofiler Solution on IIS with a DataDog profiler.
Prerequisites
Install the Datadog Tracer for DotNet into a different folder than C:\Program Files\, for example, “C:\DataDog-Tracer”.
Open your Windows System Properties dialog, and in the Environment Variables section, remove the following ones if they have been set:
COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
COR_PROFILER_PATH_64=C:\path\to\Datadog.Trace.ClrProfiler.Native.dll
COR_PROFILER_PATH_32=C:\path\to\Datadog.Trace.ClrProfiler.Native.dll
CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
CORECLR_PROFILER_PATH_64=C:\path\to\Datadog.Trace.ClrProfiler.Native.dll
CORECLR_PROFILER_PATH_32=C:\path\to\Datadog.Trace.ClrProfiler.Native.dllInstall the Sealights .Net Agent, for example, in C:\Sealights\dotnet-agent\ directory and place there your agent token as a sltoken.txt file (Optional).
Installing the Datadog tracer for .NET in a folder other than C:\Program Files is mandatory to avoid permission issues when IIS applications attempt to access that directory. This requirement ensures that Sealights’ Multiprofiler solution can properly load the Datadog profiler without restrictions. Please note that the Datadog agent itself may remain in its default location, as only the tracer must reside in a path freely accessible by IIS processes.
Setup
Set the environment variables for the IIS Services (WAS and W3SVC) to specify the parameters needed by the Sealights and DataDog agents.
If you're configuring the CD Agent, you'll need to add the following variables
Open the registry keys and update both: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC by adding a new Multi-String value called Environment with the values defined above as their data

Completely stop and start IIS by running the following commands as an administrator:
Upon successful completion of this step, you should see the following new entries in Cockpit > Live Agent Monitor for the Sealights Profiler:
CollectorServiceSessionfordotnettechnologyProfiler, displaying the version details of your application (with the connected Application Pool shown as a tag in the dedicated column)
The Multiprofiler will not appear in the Cockpit Live Agent Monitor because it is a local, offline tool, separate from the agent. The only way to confirm that it is working properly is to check its traces or logs, which you enable using the SL_MP_LogDir and SL_MP_LOGLEVEL environment variables.
For DataDog, you can follow your standard validation process. Typically, this involves reviewing the APM-dedicated tab in the DataDog Dashboard and ensuring no errors appear in the local DataDog profiler logs.
Last updated
Was this helpful?

