Skip to content

Latest commit

 

History

History

sentry-samples-spring-boot-webflux

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sentry Sample Spring Boot Webflux

Sample application showing how to use Sentry with Spring Webflux and Spring boot.

How to run?

To see events triggered in this sample application in your Sentry dashboard, go to src/main/resources/application.properties and replace the test DSN with your own DSN.

Then, execute a command from the module directory:

../../gradlew bootRun

Make an HTTP request that will trigger events:

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

GraphQL

The following queries can be used to test the GraphQL integration.

Greeting

{
    greeting(name: "crash")
}

Greeting with variables

query GreetingQuery($name: String) {
    greeting(name: $name)
}

variables:

{
    "name": "crash"
}