Deployment Integrations

.NET Core 2.1

The Thundra agent only supports applications with .NET Core 2.1 version.

Step 1: Add Thundra NuGet package

dotnet add package Thundra.Agent --version $LATEST_VERSION
Latest Version

Step 2: Add Thundra .NET Middleware

After installing the Thundra package, you will need to add Thundra .NET Middleware to your application. Thundra will monitor your application automatically.

Startup.cs
// ...
// Make sure to load the Thundra Package
using Thundra.Agent.Wrapper.ASP;
namespace SampleApplication
{
public class Startup
{
// ...
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// ...
// Thundra .NET Middleware
app.UseThundra();
app.UseMvc(routes =>
{
// ...
});
}
}
}

Step 3: Add necessary Environment Variables

Initially, we recommend setting two environment variables.

Set the thundra_apiKey environment variable to the API key value you got from the Thundra console and the thundra_agent_application_name to your choice of a name that will show up on the Thundra console.

Below, you'll see some examples of ways to set these variables.

Shell
export thundra_apiKey=<Thundra-ApiKey>
export thundra_agent_application_name=<Your-Application-Name>
Dockerfile
ENV thundra_apiKey=<Thundra-ApiKey>
ENV thundra_agent_application_name=<Your-Application-Name>
launchSettings.json
{
// ...
"profiles": {
"SampleApplication": {
// ...
"environmentVariables": {
// ...
"thundra_apiKey": "<Thundra-ApiKey>",
"thundra_agent_application_name": "<Your-Application-Name>"
}
}
}
}