Add migration guide for SharpRaven
See original GitHub issueWe currently use the legacy SharpRaven nuget package, and are looking to migrate.
Some things that are not immediately obvious from reading the documentation (my apologies if I’ve missed this information):
- What is the replacement for SentryUserFactory?
- Is ASP.NET (Framework) integration supported?
- What is the replacement for LogScrubber?
- What is the recommended way to move away from RavenClient? Currently we create a global instance at application startup, and use this throughout. With
SentrySdk.Init()
, all the examples use ausing
statement - should we initialise whenever we log an exception, or continue using a global instance and disposing on application shutdown?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Migration Guide for .NET
Migrating from SharpRaven to Sentry SDK. Below are the main differences between SharpRaven and Sentry SDK, including a list of features available in...
Read more >Using a Separate Migrations Project - EF Core
Using a separate migration project for managing database schemas with Entity Framework Core.
Read more >Part 4, Razor Pages with EF Core migrations in ASP.NET ...
The EF Core migrations add command generated code to create the database. ... Use SSOX or SQLite tool to inspect the database.
Read more >SharpRaven 2.4.0
The full contexts interface is accessible via the API so SDK consumers can add more context when available at the application level.
Read more >Untitled
Here's a link to SharpRaven 's open source repository on GitHub grzybica skóry leczenie mp Add migration guide for SharpRaven #243 - GitHub ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Lets finally tackle this, it’s been too long.
The task should:
dotnet
level and there we note migration for any integration like ASP.NETSharpRaven
toSentry
and it should include:Sentry
on the other hand only support .NET Framework 4.6.1 and later.AddAspNet
).IDisposable
returned fromInit
needs to be invoked before the problem exists. On ASP.NET classic, mentionSentry.AspNet
must be installed to get HTTP related information.await client.CaptureAsync(..)
After:SentrySdk.CaptureEvent(..)
(the event will be sent on a background thread and so it’ll not block the calling thread. The SharpRaven approach would not block the thread but only continue your code (i.e: return the HTTP request) once the SDK communicated with Sentry which was suboptimal.client.Capture(..)
After:SentrySdk.CaptureEvent(..)
After:
This should be a good start ^
List of features used used to announce to raven users: https://github.com/getsentry/raven-csharp/issues/281#issuecomment-565854063
Done - #244
This won’t cut it for cardholder data - for PCI-DSS compliance we cannot send Sentry cardholder data. There shouldn’t be any such data in exceptions anyway, but it needs to be filtered on our side just in case.
Again, thanks for your response.