Actionable insights to solve ASP.NET errors.
Add the Sentry dependency:
Install-Package Sentry.AspNet
You configure the SDK in the Global.asax.cs
:
using System; using System.Web; using Sentry; using Sentry.AspNet; using Sentry.EntityFramework; // if you also installed Sentry.EntityFramework using Sentry.Extensibility; public class MvcApplication : HttpApplication { private IDisposable _sentry; protected void Application_Start() { // Initialize Sentry to capture AppDomain unhandled exceptions and more. _sentry = SentrySdk.Init(o => { o.AddAspNet(); o.Dsn = "https://<key>@sentry.io/<project>"; // When configuring for the first time, to see what the SDK is doing: o.Debug = true; // Set TracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. // We recommend adjusting this value in production o.TracesSampleRate = 1.0; // if you also installed the Sentry.EntityFramework package o.AddEntityFramework(); }); } protected void Application_Error() { var exception = Server.GetLastError(); SentrySdk.CaptureException(exception); } protected void Application_BeginRequest() { Context.StartSentryTransaction(); } protected void Application_EndRequest() { Context.FinishSentryTransaction(); } protected void Application_End() { // Flushes out events before shutting down. _sentry?.Dispose(); } }
Check our documentation for the latest instructions.
See all platformsSee ASP.NET stack trace details like filename and line number so you never have to guess. Filter and group ASP.NET exceptions intuitively to eliminate noise. Monitor errors at scale without impacting throughput in production.
Quickly identify ASP.NET performance issues before they become downtime with performance monitoring. View the entire end-to-end distributed trace to see the exact, poor-performing API call and surface any related errors.
Expose the important events that led to each ASP.NET exception: debug logs, network requests, database queries, past errors.
With Sentry's exceptional exception handling in ASP.NET, you can triage quickly based on specific parameters like HTTP request, workflow stage, and hostname for each issue. Set custom tags to recreate the error environment relevant to your app, business concerns, and users.
Just look at all the high-quality security features all accounts get, regardless of plan.
When Spring Boot is configured to generate Git information every event triggered by Sentry will have a release field set to the current Git commit ID that will enable Monitor Release Health Sentry feature. More details here.
You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.
Here’s a quick look at how Sentry handles your personal information (PII).
×We collect PII about people browsing our website, users of the Sentry service, prospective customers, and people who otherwise interact with us.
What if my PII is included in data sent to Sentry by a Sentry customer (e.g., someone using Sentry to monitor their app)? In this case you have to contact the Sentry customer (e.g., the maker of the app). We do not control the data that is sent to us through the Sentry service for the purposes of application monitoring.
Am I included?We may disclose your PII to the following type of recipients:
You may have the following rights related to your PII:
If you have any questions or concerns about your privacy at Sentry, please email us at [email protected].
If you are a California resident, see our Supplemental notice.