Skip to content

rjdkolb/devops-springboot-4-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry Demo Application

This project is a simple Spring Boot application used to demonstrate error handling and monitoring in a minimal viable way.

Sentry already provides a wizard to setup your application, you can select Logback.

Requirement

I assume you have Maven and Java 25 setup.

If not installed, you can always mise

mise use -g java@zulu-25.30.17.0
mise use -g maven

Getting Started

Sign up for a Sentry demo account.

signup

Look for the DSN value as it will be set in an environment variable SENTRY_AUTH_TOKEN. It would look something like this:

https://1234999999.ingest.de.sentry.io/88888888888888

Log back wizard

Build and run the application.

mvn clean package

cat ./scripts/start-with-sentry.sh

export SENTRY_DSN=https://YOUR_PERSONAL_DSN

./scripts/start-with-sentry.sh

Send issues to Sentry

Divide by zero

You can simply click on this link which will cause a division by zero error: http://localhost:8080/api/divide?by=0

arithmetic-exception

SQL error

You can simply click on this link which will cause a division by zero error: http://localhost:8080/api/sqlerror

sql-exception

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors