Repository navigation
Commit d225dfd
test(spring-boot): Port the Boot 3 OTel agent sample's Person, tracing and Todo tests
The agent tests now start the fixture app once per test JVM and share
it, because it takes seconds to start. Which mode initializes Sentry is
a property of the test task, so the suite's task runs with the agent
initializing it and a new integrationTestOtelAgentWithoutAutoInit task
runs the same tests with the Spring Boot starter doing it. Gradle runs
the two in parallel.
The fixture gains the Person POST, distributed tracing and Todo
endpoints, and the suite ports the agent sample's Person,
DistributedTracing and Todo tests. Sentry exports the agent's spans in
batches every 5 seconds, which can't be configured, so each test waits
for the next batch and the negative tracing check waits past one.
ChildJvmApp now copies the app's output into the test's as it arrives
instead of printing it on close. The shared app is closed when the JVM
exits, where its whole log would otherwise land on the console.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 552a663 commit d225dfd
18 files changed
Lines changed: 639 additions & 569 deletions
File tree
- .github/workflows
- sentry-samples/sentry-samples-spring-boot-jakarta-opentelemetry/src/test/kotlin/io/sentry/systemtest
- sentry-spring-boot-jakarta
- src
- agentFixture
- kotlin/io/sentry/spring/boot/jakarta/agentfixture
- resources
- integrationTestOtelAgent/kotlin/io/sentry/spring/boot/jakarta
- otelagentintegrationtest
- sentry-test-support/src/main/kotlin/io/sentry/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments