File tree Expand file tree Collapse file tree 6 files changed +23
-15
lines changed
deployment/src/main/java/app/fyreplace/api/sentry/processors
runtime/src/main/java/app/fyreplace/api/sentry/recorders Expand file tree Collapse file tree 6 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 15
15
jobs :
16
16
formatting :
17
17
name : Check formatting
18
- runs-on : ubuntu-latest
18
+ runs-on : ubuntu-24.04
19
19
20
20
steps :
21
21
- name : Checkout repository
32
32
33
33
test :
34
34
name : Test
35
- runs-on : ubuntu-latest
35
+ runs-on : ubuntu-24.04
36
36
environment : test
37
37
38
38
steps :
Original file line number Diff line number Diff line change 1
1
org.gradle.jvmargs =-Xmx1024M
2
- quarkusPlatformVersion =3.21.4
3
- quarkusPluginVersion =3.21.4
4
- sentryVersion =8.11 .1
2
+ quarkusPlatformVersion =3.25.3
3
+ quarkusPluginVersion =3.25.3
4
+ sentryVersion =8.19 .1
5
5
javaXtVersion =2.1.11
6
6
twelveMonkeysVersion =3.12.0
7
- spotlessPluginVersion =7.0.3
8
- lombokPluginVersion =8.13.1
7
+ spotlessPluginVersion =7.2.1
8
+ lombokPluginVersion =8.14
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.14.3 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1
1
package app .fyreplace .api .sentry .processors ;
2
2
3
- import app .fyreplace .api .sentry .config .SentryConfig ;
4
3
import app .fyreplace .api .sentry .recorders .SentryRecorder ;
5
4
import io .quarkus .deployment .annotations .BuildStep ;
6
5
import io .quarkus .deployment .annotations .ExecutionTime ;
@@ -33,7 +32,7 @@ SystemPropertyBuildItem setContextStorageProvider() {
33
32
34
33
@ BuildStep
35
34
@ Record (ExecutionTime .RUNTIME_INIT )
36
- LogHandlerBuildItem addSentryHandler (final SentryConfig config , final SentryRecorder recorder ) {
37
- return new LogHandlerBuildItem (recorder .create (config ));
35
+ LogHandlerBuildItem addSentryHandler (final SentryRecorder recorder ) {
36
+ return new LogHandlerBuildItem (recorder .create ());
38
37
}
39
38
}
Original file line number Diff line number Diff line change 14
14
15
15
@ Recorder
16
16
public class SentryRecorder {
17
- public RuntimeValue <Optional <Handler >> create (final SentryConfig sentryConfig ) {
17
+ private final RuntimeValue <SentryConfig > pendingSentryConfig ;
18
+
19
+ public SentryRecorder (RuntimeValue <SentryConfig > sentryConfig ) {
20
+ pendingSentryConfig = sentryConfig ;
21
+ }
22
+
23
+ public RuntimeValue <Optional <Handler >> create () {
24
+ final var sentryConfig = pendingSentryConfig .getValue ();
25
+
18
26
if (sentryConfig .dsn ().isEmpty ()) {
19
27
return new RuntimeValue <>(Optional .empty ());
20
28
}
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ quarkus:
16
16
dev :
17
17
paths : " /dev/*"
18
18
policy : " deny"
19
- cors : true
19
+ cors :
20
+ enabled : true
20
21
limits :
21
22
max-body-size : " 10M"
22
23
rest :
73
74
' %dev ' :
74
75
quarkus :
75
76
hibernate-orm :
76
- database :
77
- generation : " drop-and-create"
77
+ schema-management :
78
+ strategy : " drop-and-create"
78
79
dev-ui :
79
80
allow-hql : true
80
81
liquibase :
You can’t perform that action at this time.
0 commit comments