Skip to content

Commit 42fe02a

Browse files
committed
Update Strings for Spring 7 and Spring Boot 4
1 parent 847958a commit 42fe02a

File tree

13 files changed

+26
-26
lines changed

13 files changed

+26
-26
lines changed

sentry-spring-7/src/main/java/io/sentry/spring7/SentryExceptionResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
@Open
2929
public class SentryExceptionResolver implements HandlerExceptionResolver, Ordered {
30-
public static final String MECHANISM_TYPE = "Spring6ExceptionResolver";
30+
public static final String MECHANISM_TYPE = "Spring7ExceptionResolver";
3131

3232
private final @NotNull IScopes scopes;
3333
private final @NotNull TransactionNameProvider transactionNameProvider;

sentry-spring-7/src/main/java/io/sentry/spring7/exception/SentryCaptureExceptionParameterAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@ApiStatus.Internal
2222
@Open
2323
public class SentryCaptureExceptionParameterAdvice implements MethodInterceptor {
24-
private static final String MECHANISM_TYPE = "SentrySpring6CaptureExceptionParameterAdvice";
24+
private static final String MECHANISM_TYPE = "SentrySpring7CaptureExceptionParameterAdvice";
2525
private final @NotNull IScopes scopes;
2626

2727
public SentryCaptureExceptionParameterAdvice() {

sentry-spring-7/src/main/java/io/sentry/spring7/graphql/SentryDgsSubscriptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public final class SentryDgsSubscriptionHandler implements SentrySubscriptionHandler {
1212

1313
public SentryDgsSubscriptionHandler() {
14-
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring6NetflixDGSGrahQL");
14+
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring7NetflixDGSGrahQL");
1515
}
1616

1717
@Override

sentry-spring-7/src/main/java/io/sentry/spring7/graphql/SentryGraphql22Configuration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class SentryGraphql22Configuration {
2323
public SentryInstrumentation sentryInstrumentationWebMvc(
2424
final @NotNull ObjectProvider<SentryGraphqlInstrumentation.BeforeSpanCallback>
2525
beforeSpanCallback) {
26-
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring6GrahQLWebMVC");
26+
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring7GrahQLWebMVC");
2727
return createInstrumentation(beforeSpanCallback, false);
2828
}
2929

@@ -33,7 +33,7 @@ public SentryInstrumentation sentryInstrumentationWebMvc(
3333
public SentryInstrumentation sentryInstrumentationWebflux(
3434
final @NotNull ObjectProvider<SentryGraphqlInstrumentation.BeforeSpanCallback>
3535
beforeSpanCallback) {
36-
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring6GrahQLWebFlux");
36+
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring7GrahQLWebFlux");
3737
return createInstrumentation(beforeSpanCallback, true);
3838
}
3939

sentry-spring-7/src/main/java/io/sentry/spring7/graphql/SentryGraphqlConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class SentryGraphqlConfiguration {
2323
public SentryInstrumentation sentryInstrumentationWebMvc(
2424
final @NotNull ObjectProvider<SentryGraphqlInstrumentation.BeforeSpanCallback>
2525
beforeSpanCallback) {
26-
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring6GrahQLWebMVC");
26+
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring7GrahQLWebMVC");
2727
return createInstrumentation(beforeSpanCallback, false);
2828
}
2929

@@ -33,7 +33,7 @@ public SentryInstrumentation sentryInstrumentationWebMvc(
3333
public SentryInstrumentation sentryInstrumentationWebflux(
3434
final @NotNull ObjectProvider<SentryGraphqlInstrumentation.BeforeSpanCallback>
3535
beforeSpanCallback) {
36-
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring6GrahQLWebFlux");
36+
SentryIntegrationPackageStorage.getInstance().addIntegration("Spring7GrahQLWebFlux");
3737
return createInstrumentation(beforeSpanCallback, true);
3838
}
3939

sentry-spring-7/src/main/java/io/sentry/spring7/opentelemetry/SentryOpenTelemetryAgentWithoutAutoInitConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class SentryOpenTelemetryAgentWithoutAutoInitConfiguration {
2020
sentryOpenTelemetryOptionsConfiguration() {
2121
return options -> {
2222
SentryIntegrationPackageStorage.getInstance()
23-
.addIntegration("SpringBoot3OpenTelemetryAgentWithoutAutoInit");
23+
.addIntegration("SpringBoot4OpenTelemetryAgentWithoutAutoInit");
2424
options.setOpenTelemetryMode(SentryOpenTelemetryMode.AGENT);
2525
};
2626
}

sentry-spring-7/src/main/java/io/sentry/spring7/opentelemetry/SentryOpenTelemetryNoAgentConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static ISpanFactory openTelemetrySpanFactory(OpenTelemetry openTelemetry)
3030
sentryOpenTelemetryOptionsConfiguration() {
3131
return options -> {
3232
SentryIntegrationPackageStorage.getInstance()
33-
.addIntegration("SpringBoot3OpenTelemetryNoAgent");
33+
.addIntegration("SpringBoot4OpenTelemetryNoAgent");
3434
SentryAutoConfigurationCustomizerProvider.skipInit = true;
3535
options.setOpenTelemetryMode(SentryOpenTelemetryMode.AGENTLESS_SPRING);
3636
};

sentry-spring-7/src/main/java/io/sentry/spring7/webflux/SentryWebExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// at -1
2828
@ApiStatus.Experimental
2929
public final class SentryWebExceptionHandler implements WebExceptionHandler {
30-
public static final String MECHANISM_TYPE = "Spring6WebFluxExceptionResolver";
30+
public static final String MECHANISM_TYPE = "Spring7WebFluxExceptionResolver";
3131
private final @NotNull IScopes scopes;
3232

3333
public SentryWebExceptionHandler(final @NotNull IScopes scopes) {

sentry-spring-7/src/test/kotlin/io/sentry/spring7/exception/SentryCaptureExceptionParameterAdviceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SentryCaptureExceptionParameterAdviceTest {
4343
check {
4444
assertTrue(it is ExceptionMechanismException)
4545
assertEquals(exception, it.throwable)
46-
assertEquals("SentrySpring6CaptureExceptionParameterAdvice", it.exceptionMechanism.type)
46+
assertEquals("SentrySpring7CaptureExceptionParameterAdvice", it.exceptionMechanism.type)
4747
},
4848
any<Hint>(),
4949
)

sentry-spring-boot-4/src/main/java/io/sentry/spring/boot4/SentrySpringVersionChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class SentrySpringVersionChecker
1414
@Override
1515
public void onApplicationEvent(ApplicationContextInitializedEvent event) {
1616

17-
if (!SpringBootVersion.getVersion().startsWith("3")) {
17+
if (!SpringBootVersion.getVersion().startsWith("4")) {
1818
logger.warn("############################### WARNING ###############################");
1919
logger.warn("## ##");
2020
logger.warn("## !Incompatible Spring Boot Version detected! ##");

0 commit comments

Comments
 (0)