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 2d0c4ca
Browse filesBrowse the repository at this point in the historyBrowse files
test(micrometer): Add Spring Boot 3 and 4 sample parity
Copy the Boot 2 Micrometer endpoint and secondary SimpleMeterRegistry into
the Jakarta and Boot 4 samples. Verify that a single recording reaches
both Sentry and the secondary registry, including exported tags and SDK
integration metadata.
Run the six metrics system tests for each of Boot 2, 3, and 4 against the
sample applications and mock Sentry server: all 18 pass.
Refs #6116
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