You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7cb3592
Browse filesBrowse the repository at this point in the historyBrowse files
test(otel): Test a Spring Boot app under the agent in both init modes
Runs a Spring Boot app with the built agent in a child JVM and checks
that errors, the server transaction with OTel and Sentry API spans, and
logs reach MockSentryServer. It runs once with the agent initializing
Sentry and once with the Spring Boot starter doing it; the SDK name
proves which path ran. The sample's auto-init=false CI variant shares
task inputs with the true variant, so Gradle can skip it as up to date.
The app has its own source set so it runs on an app-like classpath
rather than the test's, which carries the agent's plain jar and would
flip the auto-configuration conditions.
The child-JVM launcher moves into sentry-test-support and the argument
provider into build-logic, so both agent tests share them.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-opentelemetry/sentry-opentelemetry-agent/src/test/java/io/sentry/opentelemetry/agent/fixture/HelloServer.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
/**
13
13
* An app for the agent to instrument. It only uses the JDK, so a test can run it with nothing but
14
-
* this class on the classpath, and it writes its port to the file named by the first argument.
14
+
* this class on the classpath, and it writes its port to the file named by {@code PORTFILE}.
Copy file name to clipboardExpand all lines: sentry-opentelemetry/sentry-opentelemetry-agent/src/test/kotlin/io/sentry/opentelemetry/agent/AgentSmokeTest.kt
0 commit comments