Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1002 Bytes

File metadata and controls

44 lines (32 loc) · 1002 Bytes

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"
}