Sample application showing how to use Sentry with Spring boot from version 3.0
onwards integrated with the OpenTelemetry Spring Boot Starter without an agent.
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"}'
The following queries can be used to test the GraphQL integration.
{
greeting(name: "crash")
}
query GreetingQuery($name: String) {
greeting(name: $name)
}
variables:
{
"name": "crash"
}
query ProjectQuery($slug: ID!) {
project(slug: $slug) {
slug
name
repositoryUrl
status
}
}
variables:
{
"slug": "statuscrash"
}
mutation AddProjectMutation($slug: ID!) {
addProject(slug: $slug)
}
variables:
{
"slug": "nocrash",
"name": "nocrash"
}
subscription SubscriptionNotifyNewTask($slug: ID!) {
notifyNewTask(projectSlug: $slug) {
id
name
assigneeId
assignee {
id
name
}
}
}
variables:
{
"slug": "crash"
}
query TasksAndAssigneesQuery($slug: ID!) {
tasks(projectSlug: $slug) {
id
name
assigneeId
assignee {
id
name
}
}
}
variables:
{
"slug": "crash"
}