.NET on Linux
  • 1 Minute to read
  • Dark
    Light
  • PDF

.NET on Linux

  • Dark
    Light
  • PDF

Article summary

Installing Prefix

Prefix uses a simple installer and takes just a couple minutes to install.

Check out the Getting Started Prefix page to download and install Prefix on your workstation.

Applying the Environment Variables

The .NET profiler requires environment variables to be set in order for Prefix to run correctly.

  • Add the variables to the user's shell profile
export CORECLR_PROFILER={cf0d821e-299b-5307-a3d8-b283c03916da}
export CORECLR_ENABLE_PROFILING=1
export CORECLR_PROFILER_PATH="/usr/local/stackify/stackify-dotnet-apm/StackifyProfiler.so"
Note:

These export variables can be added in your active terminal where your app is running.

.NET Core

.NET Core:

Prefix only supports 2.1 and later with primary testing on LTS releases (2.1 and 3.1)

All you need to do is create a Stackify.json file that contains your app name as shown below.

Naming your Application

Create a file named Stackify.json and save it in the deployment folder of your application.

{
    "AppName": "MyApp"
}

This app name setting will be used to display your different apps when viewing requests and traces in Prefix.


Was this article helpful?