Install .NET Core agent alongside New Relic

To install the .NET Core agent alongside the New Relic agent:

  1. Install the New Relic agent.

  2. Change the environment variable keys as follows:

    Change this

    To this

    CORECLR_PROFILER 

    CONTRAST_CCC_CORECLR_PROFILER

    CORECLR_PROFILER_PATH

    CONTRAST_CCC_CORECLR_PROFILER_PATH

    The New Relic environment should should be similar to:

    CORECLR_ENABLE_PROFILING=1
    CONTRAST_CCC_CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
    CORECLR_NEWRELIC_HOME=PATH\TO\INSTALL
    CONTRAST_CCC_CORECLR_PROFILER_PATH=C:\Program Files\New Relic\.NET Agent\netframework\NewRelic.Profiler.dll
    NEW_RELIC_LICENSE_KEY=YOUR_LICENSE_KEY
    NEW_RELIC_APP_NAME=YOUR_APP_NAME
  3. Install the .NET Core agent.

    The application environment with both Contrast and New Relic should look like:

    CORECLR_ENABLE_PROFILING=1
    CONTRAST_CCC_CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
    CORECLR_NEWRELIC_HOME=PATH\TO\INSTALL
    CONTRAST_CCC_CORECLR_PROFILER_PATH=C:\Program Files\New Relic\.NET Agent\netframework\NewRelic.Profiler.dll
    NEW_RELIC_LICENSE_KEY=YOUR_LICENSE_KEY
    NEW_RELIC_APP_NAME=YOUR_APP_NAME
    CORECLR_PROFILER_PATH_64=<CONTRAST_CORE_CLR_HOME>\runtimes\win-x64\native\ContrastProfiler.dll
    CORECLR_PROFILER_PATH_32=<CONTRAST_CORE_CLR_HOME>\runtimes\win-x86\native\ContrastProfiler.dll
    CORECLR_PROFILER={8B2CE134-0948-48CA-A4B2-80DDAD9F5791}
    CONTRAST_CONFIG_PATH=<CONTRAST_CORE_CLR_CONFIG_PATH>\contrast_security.yaml