From fd0761a1792014a49ed3e2db2e0bcb0aa03ec570 Mon Sep 17 00:00:00 2001 From: Benn Simon Date: Mon, 4 Apr 2022 09:34:47 +0300 Subject: [PATCH] add sentry configuration (#38) * add sentry configuration * bump snapshot version --- pom.xml | 8 +++++++- .../java/ca/uhn/fhir/jpa/starter/Application.java | 3 ++- src/main/resources/application.yaml | 11 +++++++++++ src/main/resources/logback.xml | 11 +++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 52d97bf1f72..3765c617047 100755 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ hapi-fhir-jpaserver-starter org.smartregister - 5.7.0-SNAPSHOT + 5.8.0-SNAPSHOT 8 @@ -159,6 +159,12 @@ 0.0.4-SNAPSHOT + + org.smartregister.hapi-fhir-opensrp-extensions + configuration + 0.0.1-SNAPSHOT + + diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/Application.java b/src/main/java/ca/uhn/fhir/jpa/starter/Application.java index 4e54bb3929b..759173372d3 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/Application.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/Application.java @@ -6,6 +6,7 @@ import ca.uhn.fhir.jpa.subscription.match.config.SubscriptionProcessorConfig; import ca.uhn.fhir.jpa.subscription.match.config.WebsocketDispatcherConfig; import ca.uhn.fhir.jpa.subscription.submit.config.SubscriptionSubmitterConfig; +import org.smartregister.extension.configuration.OpenSRPExtensionConfiguration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.config.AutowireCapableBeanFactory; import org.springframework.boot.SpringApplication; @@ -26,7 +27,7 @@ @ServletComponentScan(basePackageClasses = { JpaRestfulServer.class}) @SpringBootApplication(exclude = {ElasticsearchRestClientAutoConfiguration.class}) -@Import({SubscriptionSubmitterConfig.class, SubscriptionProcessorConfig.class, SubscriptionChannelConfig.class, WebsocketDispatcherConfig.class, MdmConfig.class}) +@Import({SubscriptionSubmitterConfig.class, SubscriptionProcessorConfig.class, SubscriptionChannelConfig.class, WebsocketDispatcherConfig.class, MdmConfig.class, OpenSRPExtensionConfiguration.class}) @EnableAutoConfiguration(exclude = {ErrorMvcAutoConfiguration.class}) public class Application extends SpringBootServletInitializer { diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 87bb239bf36..fc3204cc123 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -191,3 +191,14 @@ keycloak: # use-resource-role-mappings: true, logging.level.org.springframework.web: trace logging.level.org.apache: trace + +#sentry: +# enabled: false +# options: +# dsn: +# release: +# environment: +# tags: +# debug: false +# minimumEventLevel: ERROR +# minimumBreadcrumbLevel: INFO diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 9625c50de37..d799a9238db 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -16,6 +16,17 @@ + + + + + + + + + + +