Connect your ASP.NET Core project to GlitchTip

Install the NuGet package:

Package Manager:

Install-Package Sentry.AspNetCore

.NET Core CLI:

dotnet add package Sentry.AspNetCore

Add the SDK to Program.cs through the WebHostBuilder:

ASP.NET Core 2.x:

public static IWebHost BuildWebHost(string[] args) =>
        // Add the following line:
        .UseSentry("your DSN here")

ASP.NET Core 3.0:

public static IHostBuilder CreateHostBuilder(string[] args) =>
        .ConfigureWebHostDefaults(webBuilder =>
            // Add the following line:
            webBuilder.UseSentry("your DSN here")

See the provided examples in the dotnet SDK repository for examples to send your first event to GlitchTip.