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 9465748
Browse filesBrowse the repository at this point in the historyBrowse files
merge(micrometer): Propagate Spring Boot sample parity
Merge the Boot 3 and Boot 4 sample endpoints and dual-registry system tests
from #6116 into the ignored-metrics branch. Keep the top of the stack in
sync without rewriting its history.
Verify all 18 metrics system tests against Boot 2, 3, and 4 with the
ignored-metrics defaults applied. Formatting and API checks also pass.
Refs #6116
Refs #6155
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-spring-boot-4/src/main/java/io/sentry/samples/spring/boot4/MetricController.java
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-spring-boot-4/src/main/java/io/sentry/samples/spring/boot4/SentryDemoApplication.java
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-spring-boot-jakarta/src/main/java/io/sentry/samples/spring/boot/jakarta/MetricController.java
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-spring-boot-jakarta/src/main/java/io/sentry/samples/spring/boot/jakarta/SentryDemoApplication.java
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-spring-boot-jakarta/src/test/kotlin/io/sentry/systemtest/MetricsSystemTest.kt
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package io.sentry.systemtest
3
3
importio.sentry.systemtest.util.TestHelper
4
4
importkotlin.test.Test
5
5
importkotlin.test.assertEquals
6
+
importkotlin.test.assertNotNull
6
7
importkotlin.test.assertTrue
7
8
importorg.junit.Before
8
9
@@ -28,6 +29,30 @@ class MetricsSystemTest {
28
29
}
29
30
}
30
31
32
+
@Test
33
+
fun`Micrometer metric is forwarded to Sentry and another registry`() {
34
+
val restClient = testHelper.restClient
35
+
val response = assertNotNull(restClient.getMicrometerMetric())
36
+
val responsePrefix ="micrometer metric increased: "
0 commit comments