sentry-dotnet README

The project's README from github.com/getsentry/sentry-dotnet. As one markdown file: README.md.


Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us, check out our open positions.

Sentry SDK for .NET

build codecov X Follow Discord Chat

Integrations Downloads NuGet Stable NuGet Preview Documentation
Sentry Downloads NuGet NuGet Documentation
Sentry.AspNetCore Downloads NuGet NuGet Documentation
Sentry.AspNetCore.Blazor.WebAssembly Downloads NuGet NuGet Documentation
Sentry.AspNetCore.Grpc Downloads NuGet NuGet Documentation
Sentry.AspNet Downloads NuGet NuGet Documentation
Sentry.DiagnosticSource Downloads NuGet NuGet Documentation
Sentry.EntityFramework Downloads NuGet NuGet Documentation
Sentry.Extensions.AI Downloads NuGet NuGet Documentation
Sentry.Extensions.Logging Downloads NuGet NuGet Documentation
Sentry.Google.Cloud.Functions Downloads NuGet NuGet Documentation
Sentry.Hangfire Downloads NuGet NuGet Documentation
Sentry.Log4Net Downloads NuGet NuGet Documentation
Sentry.Maui Downloads NuGet NuGet Documentation
Sentry.NLog Downloads NuGet NuGet Documentation
Sentry.OpenTelemetry Downloads NuGet NuGet Documentation
Sentry.OpenTelemetry.Exporter Downloads NuGet NuGet Documentation
Sentry.Profiling Downloads NuGet NuGet Documentation
Sentry.Serilog Downloads NuGet NuGet Documentation

More Sentry .NET Integrations

Sentry offers other integrations that are not part of this repository:

Looking for something else? Let us know by raising an issue.

Documentation

Each NuGet package in the table above has its custom view of the docs. Click on the badge to find the best documentation for your use case.

Sentry has extensive documentation for its SDKs on https://docs.sentry.io.

Samples

Consider taking a look at the samples directory for different types of apps and example usages of the SDK. Looking for a way to connect Aspire with Sentry? We've got a sample for that too!

Talks

Resources

Documentation Discussions Discord Chat Stack Overflow X Follow

sentry-dotnet (getsentry/sentry-dotnet)

Searching Database…

What is this?Sentry SDK for .NET — it captures crashes, errors, and performance/telemetry data from .NET applications and sends them to Sentry for monitoring.
Is this one SDK or a bunch of separate packages?It is a family of NuGet packages: a core Sentry library plus separate integration packages for ASP.NET Core, Blazor WebAssembly, gRPC, MAUI, EF, logging frameworks, Hangfire, OpenTelemetry and more.
How do I add it to my .NET project?Install the NuGet package that matches your app type (e.g. 'Sentry' for core, 'Sentry.AspNetCore' for ASP.NET Core, 'Sentry.Maui' for MAUI); each package links to its own docs for setup.
Are there separate preview and stable builds?Yes, each integration package ships both a Stable and a Preview NuGet feed, so you can opt into preview features without using unstable builds project-wide.
Does it work with Blazor WebAssembly and gRPC apps too?Yes, there are dedicated packages for Blazor WebAssembly and gRPC, alongside general ASP.NET Core, MAUI (Android/iOS), and Google Cloud Functions support.
Is there a separate SDK for Unity or PowerShell?Yes, Sentry.Unity and Sentry.PowerShell are maintained as separate SDKs outside this repository, for Unity games and PowerShell scripts respectively.
What is Sentry.OpenTelemetry for?It wires up OpenTelemetry tracing so distributed tracing data collected via OTel gets exported into Sentry's performance monitoring.
What does Sentry.Profiling add?It adds application performance profiling, surfacing hot code paths and bottlenecks alongside the errors Sentry already reports.
Where can I find working examples?The repo's samples directory has example projects for different app types, including one showing how to connect .NET Aspire with Sentry.
Creator
getsentry
Size
132.4 MB
Stars
768
Age
8y
Commits · 90 Days