Skip to content

Commit

Permalink
feat: add sentry log recording
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Sep 22, 2023
1 parent bd04f46 commit f0045d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions interweb-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-reactive-panache</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.loggingsentry</groupId>
<artifactId>quarkus-logging-sentry</artifactId>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
Expand Down
7 changes: 6 additions & 1 deletion interweb-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ quarkus.datasource.reactive.url=mariadb://localhost:3306/interweb
quarkus.datasource.reactive.max-size=20

quarkus.hibernate-orm.database.generation=update
quarkus.hibernate-orm.log.sql=true
%dev.quarkus.hibernate-orm.log.sql=true

quarkus.health.openapi.included=false
quarkus.smallrye-jwt.enabled=true
Expand All @@ -28,6 +28,11 @@ smallrye.jwt.new-token.lifespan=7200
mp.jwt.verify.publickey=${jwt.public.key}
mp.jwt.verify.issuer=${jwt.issuer}

# Sentry
quarkus.log.sentry=false
quarkus.log.sentry.dsn=
quarkus.log.sentry.in-app-packages=de.l3s.interweb

# OpenAPI, Swagger
quarkus.swagger-ui.always-include=true
quarkus.swagger-ui.path=/api
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
<artifactId>interweb-core</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>io.quarkiverse.loggingsentry</groupId>
<artifactId>quarkus-logging-sentry</artifactId>
<version>2.0.3</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit f0045d3

Please sign in to comment.