Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 28e5d06

Browse files
committedJul 30, 2018
Make integrations public, bump to preview2
1 parent 6397231 commit 28e5d06

File tree

8 files changed

+67
-63
lines changed

8 files changed

+67
-63
lines changed
 

‎samples/Sentry.Samples.AspNet.Mvc/Global.asax.cs

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
using Sentry.EntityFramework;
12
using System;
2-
using System.Collections.Generic;
33
using System.Configuration;
4-
using System.Linq;
5-
using System.Web;
64
using System.Web.Mvc;
75
using System.Web.Optimization;
86
using System.Web.Routing;
9-
using Sentry.EntityFramework;
107

118
namespace Sentry.Samples.AspNet.Mvc
129
{
@@ -25,14 +22,14 @@ protected void Application_Start()
2522
SentryDatabaseLogging.UseBreadcrumbs();
2623

2724
// Set up the sentry SDK
28-
_sentrySdk = SentrySdk.Init(new SentryOptions
25+
_sentrySdk = SentrySdk.Init(o =>
2926
{
3027
// We store the DSN inside Web.config; make sure to use your own DSN!
31-
Dsn = new Dsn(ConfigurationManager.AppSettings["SentryDsn"])
32-
}
33-
// Add the EntityFramework integration
34-
.AddEntityFramework());
35-
28+
o.Dsn = new Dsn(ConfigurationManager.AppSettings["SentryDsn"]);
29+
30+
// Add the EntityFramework integration
31+
o.AddEntityFramework();
32+
});
3633
}
3734

3835
// Global error catcher

‎samples/Sentry.Samples.AspNet.Mvc/Sentry.Samples.AspNet.Mvc.csproj

+8-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@
5151
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
5252
</Reference>
5353
<Reference Include="Sentry, Version=0.0.1.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0, processorArchitecture=MSIL">
54-
<HintPath>..\..\packages\Sentry.0.0.1-preview3\lib\netstandard2.0\Sentry.dll</HintPath>
54+
<HintPath>..\..\packages\Sentry.0.0.1-preview4\lib\netstandard2.0\Sentry.dll</HintPath>
5555
</Reference>
5656
<Reference Include="Sentry.PlatformAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0, processorArchitecture=MSIL">
57-
<HintPath>..\..\packages\Sentry.PlatformAbstractions.1.0.0-dev-00071\lib\net45\Sentry.PlatformAbstractions.dll</HintPath>
57+
<HintPath>..\..\packages\Sentry.PlatformAbstractions.1.0.0-preview2\lib\net45\Sentry.PlatformAbstractions.dll</HintPath>
58+
</Reference>
59+
<Reference Include="Sentry.Protocol, Version=0.0.1.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0, processorArchitecture=MSIL">
60+
<HintPath>..\..\packages\Sentry.Protocol.0.0.1-preview4\lib\net46\Sentry.Protocol.dll</HintPath>
5861
</Reference>
5962
<Reference Include="System" />
6063
<Reference Include="System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -67,6 +70,9 @@
6770
<Private>True</Private>
6871
<Private>True</Private>
6972
</Reference>
73+
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
74+
<HintPath>..\..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll</HintPath>
75+
</Reference>
7076
<Reference Include="System.Web.DynamicData" />
7177
<Reference Include="System.Web.Entity" />
7278
<Reference Include="System.Web.ApplicationServices" />
+44-44
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!--
33
For more information on how to configure your ASP.NET application, please visit
44
https://go.microsoft.com/fwlink/?LinkId=301880
55
-->
66
<configuration>
77
<configSections>
88
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
9-
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
9+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
1010
</configSections>
1111
<connectionStrings>
12-
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-Sentry.Samples.AspNet.Mvc-20180711012610.mdf;Initial Catalog=aspnet-Sentry.Samples.AspNet.Mvc-20180711012610;Integrated Security=True" providerName="System.Data.SqlClient"/>
12+
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-Sentry.Samples.AspNet.Mvc-20180711012610.mdf;Initial Catalog=aspnet-Sentry.Samples.AspNet.Mvc-20180711012610;Integrated Security=True" providerName="System.Data.SqlClient" />
1313
</connectionStrings>
1414
<appSettings>
15-
<add key="webpages:Version" value="3.0.0.0"/>
16-
<add key="webpages:Enabled" value="false"/>
17-
<add key="ClientValidationEnabled" value="true"/>
18-
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
15+
<add key="webpages:Version" value="3.0.0.0" />
16+
<add key="webpages:Enabled" value="false" />
17+
<add key="ClientValidationEnabled" value="true" />
18+
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
1919
<!-- Sentry DSN, replace this with your own -->
20-
<add key="SentryDsn" value="https://5fd7a6cda8444965bade9ccfd3df9882@sentry.io/1188141"/>
20+
<add key="SentryDsn" value="https://5fd7a6cda8444965bade9ccfd3df9882@sentry.io/1188141" />
2121
</appSettings>
2222
<!--
2323
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
@@ -28,87 +28,87 @@
2828
</system.Web>
2929
-->
3030
<system.web>
31-
<authentication mode="None"/>
32-
<compilation debug="true" targetFramework="4.7.1"/>
33-
<httpRuntime targetFramework="4.6.2"/>
34-
<httpModules/>
31+
<authentication mode="None" />
32+
<compilation debug="true" targetFramework="4.7.1" />
33+
<httpRuntime targetFramework="4.6.2" />
34+
<httpModules />
3535
</system.web>
3636
<system.webServer>
3737
<modules>
38-
<remove name="FormsAuthentication"/>
38+
<remove name="FormsAuthentication" />
3939
</modules>
40-
<validation validateIntegratedModeConfiguration="false"/>
40+
<validation validateIntegratedModeConfiguration="false" />
4141
</system.webServer>
4242
<runtime>
4343
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
4444
<dependentAssembly>
45-
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35"/>
46-
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
45+
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" />
46+
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
4747
</dependentAssembly>
4848
<dependentAssembly>
49-
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35"/>
50-
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
49+
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" />
50+
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
5151
</dependentAssembly>
5252
<dependentAssembly>
53-
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35"/>
54-
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
53+
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" />
54+
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
5555
</dependentAssembly>
5656
<dependentAssembly>
57-
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35"/>
58-
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
57+
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" />
58+
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
5959
</dependentAssembly>
6060
<dependentAssembly>
61-
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f"/>
62-
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>
61+
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
62+
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
6363
</dependentAssembly>
6464
<dependentAssembly>
65-
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51"/>
66-
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1"/>
65+
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
66+
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
6767
</dependentAssembly>
6868
<dependentAssembly>
69-
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
70-
<bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
69+
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
70+
<bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
7171
</dependentAssembly>
7272
<dependentAssembly>
73-
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
74-
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/>
73+
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
74+
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
7575
</dependentAssembly>
7676
<dependentAssembly>
77-
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/>
78-
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
77+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
78+
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
7979
</dependentAssembly>
8080
<dependentAssembly>
81-
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
82-
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
81+
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
82+
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
8383
</dependentAssembly>
8484
<dependentAssembly>
85-
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
86-
<bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0"/>
85+
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
86+
<bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
8787
</dependentAssembly>
8888
<dependentAssembly>
89-
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
90-
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
89+
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
90+
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
9191
</dependentAssembly>
9292
<dependentAssembly>
93-
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
94-
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0"/>
93+
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
94+
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
9595
</dependentAssembly>
9696
</assemblyBinding>
9797
</runtime>
9898
<entityFramework>
9999
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
100100
<parameters>
101-
<parameter value="mssqllocaldb"/>
101+
<parameter value="mssqllocaldb" />
102102
</parameters>
103103
</defaultConnectionFactory>
104104
<providers>
105-
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
105+
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
106106
</providers>
107107
</entityFramework>
108108
<system.codedom>
109109
<compilers>
110-
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
111-
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
110+
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
111+
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
112112
</compilers>
113113
</system.codedom>
114114
</configuration>

‎samples/Sentry.Samples.AspNet.Mvc/packages.config

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
<package id="Modernizr" version="2.8.3" targetFramework="net462" />
3030
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net462" />
3131
<package id="Owin" version="1.0" targetFramework="net462" />
32-
<package id="Sentry" version="0.0.1-preview3" targetFramework="net462" />
33-
<package id="Sentry.PlatformAbstractions" version="1.0.0-dev-00071" targetFramework="net462" requireReinstallation="true" />
32+
<package id="Sentry" version="0.0.1-preview4" targetFramework="net462" />
33+
<package id="Sentry.PlatformAbstractions" version="1.0.0-preview2" targetFramework="net462" />
34+
<package id="Sentry.Protocol" version="0.0.1-preview4" targetFramework="net462" />
3435
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net462" />
3536
<package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net462" />
3637
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net462" />
38+
<package id="System.ValueTuple" version="4.5.0" targetFramework="net462" />
3739
<package id="WebGrease" version="1.6.0" targetFramework="net462" />
3840
</packages>

‎src/Sentry.EntityFramework/ErrorProcessors/DbConcurrencyExceptionProcessor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Sentry.EntityFramework.ErrorProcessors
55
{
6-
internal class DbConcurrencyExceptionProcessor : SentryEventExceptionProcessor<DBConcurrencyException>
6+
public class DbConcurrencyExceptionProcessor : SentryEventExceptionProcessor<DBConcurrencyException>
77
{
88
protected override void ProcessException(DBConcurrencyException exception, SentryEvent sentryEvent)
99
{

‎src/Sentry.EntityFramework/ErrorProcessors/DbEntityValidationExceptionProcessor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Sentry.EntityFramework.ErrorProcessors
77
{
8-
internal class DbEntityValidationExceptionProcessor : SentryEventExceptionProcessor<DbEntityValidationException>
8+
public class DbEntityValidationExceptionProcessor : SentryEventExceptionProcessor<DbEntityValidationException>
99
{
1010
internal const string EntityValidationErrors = "EntityValidationErrors";
1111

‎src/Sentry.EntityFramework/Sentry.EntityFramework.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<VersionPrefix>0.0.1</VersionPrefix>
5-
<VersionSuffix>preview1</VersionSuffix>
5+
<VersionSuffix>preview2</VersionSuffix>
66
<TargetFrameworks>net462</TargetFrameworks>
77
<PackageTags>Sentry;GetSentry;Error-Reporting;Crash-Reporting;Exception-Handling;EntityFramework6</PackageTags>
88
<AssemblyOriginatorKeyFile>../../.assets/Sentry.snk</AssemblyOriginatorKeyFile>
@@ -30,7 +30,7 @@
3030

3131
<ItemGroup>
3232
<PackageReference Include="EntityFramework" Version="6.0.0" />
33-
<PackageReference Include="Sentry" Version="0.0.1-preview3" />
33+
<PackageReference Include="Sentry" Version="0.0.1-preview4" />
3434
</ItemGroup>
3535

3636
</Project>

‎test/Sentry.EntityFramework.Tests/Sentry.EntityFramework.Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<PackageReference Include="coverlet.msbuild" Version="2.0.1" />
1111
<PackageReference Include="Effort.EF6" Version="1.3.5" />
1212
<PackageReference Include="NSubstitute" Version="3.1.0" />
13-
<PackageReference Include="Sentry" Version="0.0.1-preview3" />
1413
<PackageReference Include="xunit" Version="2.3.1" />
1514
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
1615
</ItemGroup>

0 commit comments

Comments
 (0)