After installing the Thundra package, you will need to add Thundra .NET Middleware to your application. Thundra will monitor your application automatically.
Startup.cs
1
// ...
2
​
3
// Make sure to load the Thundra Package
4
usingThundra.Agent.Wrapper.ASP;
5
​
6
namespaceSampleApplication
7
{
8
publicclassStartup
9
{
10
// ...
11
​
12
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
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.