Skip to content

Latest commit

 

History

History

sentry-samples-spring

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sentry Sample Spring

Sample application showing how to use Sentry with Spring.

How to run?

To see events triggered in this sample application in your Sentry dashboard, go to src/main/java/io/sentry/samples/spring/SentryConfig.java and replace the test DSN with your own DSN.

Then, execute a command from the module directory:

../../gradlew appRun

Make an HTTP request that will trigger events:

curl -XPOST --user user:password http://localhost:8080/sentry-samples-spring/person/ -H "Content-Type:application/json" -d '{"firstName":"John","lastName":"Smith"}'