Sentry.EntityFramework 1.0.0

Official Entity Framework 6 integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.

Install-Package Sentry.EntityFramework -Version 1.0.0
dotnet add package Sentry.EntityFramework --version 1.0.0
<PackageReference Include="Sentry.EntityFramework" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sentry.EntityFramework --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Entity Framework 6 Integration for Sentry

This is packages extend Sentry's .NET SDK with Entity Framework 6 queries as Breadcrumbs.
It also processes DbEntityValidationExceptions to extract the validation errors and add to the Extra field.
This increases the debuggability of Entity Framework related errors gratefully.

Example in Sentry

Usage

There are 2 steps to adding Entity Framework 6 support to your project:

  • Call SentryDatabaseLogging.UseBreadcrumbs() to either your application's startup method, or into a static constructor inside your Entity Framework object. Make sure you only call this method once! This will add the interceptor to Entity Framework to log database queries.
  • When setting up your SentryClient, use SentryOptions.AddEntityFramework(). This extension method will register all error processors to extract extra data, such as validation errors, from the exceptions thrown by Entity Framework.

Samples

You can see it in action with a sample using ASP.NET MVC 5

Entity Framework 6 Integration for Sentry

This is packages extend Sentry's .NET SDK with Entity Framework 6 queries as Breadcrumbs.
It also processes DbEntityValidationExceptions to extract the validation errors and add to the Extra field.
This increases the debuggability of Entity Framework related errors gratefully.

Example in Sentry

Usage

There are 2 steps to adding Entity Framework 6 support to your project:

  • Call SentryDatabaseLogging.UseBreadcrumbs() to either your application's startup method, or into a static constructor inside your Entity Framework object. Make sure you only call this method once! This will add the interceptor to Entity Framework to log database queries.
  • When setting up your SentryClient, use SentryOptions.AddEntityFramework(). This extension method will register all error processors to extract extra data, such as validation errors, from the exceptions thrown by Entity Framework.

Samples

You can see it in action with a sample using ASP.NET MVC 5

Release Notes

Can be found at: https://github.com/getsentry/sentry-dotnet-ef/releases

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 3,803 1/4/2019
0.0.1-preview2 1,220 7/30/2018
0.0.1-preview1 207 7/19/2018