PricingBlogDocumentationDocsLoginRegister

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) =>
    WebHost.CreateDefaultBuilder(args)
        // Add the following line:
        .UseSentry("YOUR-GLITCHTIP-DSN-HERE")

ASP.NET Core 3.0:

public static IHostBuilder CreateHostBuilder(string[] args) =>
    Host.CreateDefaultBuilder(args)
        .ConfigureWebHostDefaults(webBuilder =>
        {
            // Add the following line:
            webBuilder.UseSentry("YOUR-GLITCHTIP-DSN-HERE")
        });

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