Skip to content

ndmanvar/AspNetCore-MVC

 
 

Repository files navigation

Summary

To show how Sentry works in the ASP.NET Core SDK.

  • how to integrate the SDK into ASP.NET CORE (https://docs.sentry.io/platforms/dotnet/aspnetcore/)
  • trigger an error that gets sent as Event to Sentry.io Platform
  • ./AspNetCoreMvc/Controllers/HomeController.cs contains the REST endpoints for triggering errors captured by Sentry SDK and sent as Events to Sentry
  • The Sentry release cycle is covered in ./AspNetCoreMvc/deploy.ps1

Initial Setup & Run

  1. Configure your DSN in appsettings.json
  2. Configure your org slug and project slug in deploy.ps1
  3. Powershell pwsh
  4. cd AspNetCoreMvc
  5. ./deploy.ps1 builds the Sentry release and runs the app
  6. http://localhost:62920/Home/handled to send an Event to Sentry or
  7. Postman localhost:62920/Home/checkout
{ 
	"cart": [
		{ 
			"id": "wrench"
		}
	],'
	"email": "[email protected]"
}
// X-transaction-ID: 11223
// X-session-ID: 22334

GIF

here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.2%
  • PowerShell 3.8%