connect website with eureka
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
26
pom.xml
26
pom.xml
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<!-- Project from https://start.vaadin.com/project/5dcf3df5-dbcb-4a18-897d-eb1a8285558c -->
|
||||
<groupId>dev.mars3142.fhq</groupId>
|
||||
@@ -12,7 +13,7 @@
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
<vaadin.version>24.5.0.beta3</vaadin.version>
|
||||
<spring-cloud.version>2023.0.1</spring-cloud.version>
|
||||
<spring-cloud.version>2023.0.3</spring-cloud.version>
|
||||
<spring-cloud-gcp.version>5.4.1</spring-cloud-gcp.version>
|
||||
<spring-modulith.version>1.2.4</spring-modulith.version>
|
||||
</properties>
|
||||
@@ -135,6 +136,10 @@
|
||||
<artifactId>spring-modulith-observability</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@@ -157,6 +162,23 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>io.sentry</groupId>
|
||||
<artifactId>sentry-maven-plugin</artifactId>
|
||||
<version>0.0.8</version>
|
||||
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
|
||||
<extensions>true</extensions>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<!-- Generates a source bundle and uploads it to Sentry. -->
|
||||
<!-- This enables source context, allowing you to see your source -->
|
||||
<!-- code as part of your stack traces in Sentry. -->
|
||||
<goal>uploadSourceBundle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
@@ -8,3 +8,8 @@ vaadin:
|
||||
|
||||
backend:
|
||||
uri: http://localhost:8091/v1
|
||||
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://localhost:8761/eureka
|
||||
|
@@ -1,11 +1,10 @@
|
||||
server:
|
||||
port: ${PORT:8080}
|
||||
|
||||
logging:
|
||||
level:
|
||||
org:atmosphere: warn
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: website
|
||||
mustache:
|
||||
check-template-location: false
|
||||
jpa:
|
||||
@@ -13,3 +12,41 @@ spring:
|
||||
|
||||
backend:
|
||||
uri: https://api.firmware-hq.dev/v1
|
||||
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: true
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: http://eureka-service.web:8761/eureka
|
||||
instance:
|
||||
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
|
||||
|
||||
info:
|
||||
application:
|
||||
name: ${spring.application.name}
|
||||
version: '@project.version@'
|
||||
spring-cloud-version: '@spring-cloud.version@'
|
||||
spring-boot-version: '@project.parent.version@'
|
||||
|
||||
management:
|
||||
endpoint:
|
||||
health:
|
||||
probes:
|
||||
enabled: true
|
||||
|
||||
server:
|
||||
port: ${PORT:8080}
|
||||
shutdown: graceful
|
||||
error:
|
||||
include-message: on_param
|
||||
include-stacktrace: on_param
|
||||
|
||||
sentry:
|
||||
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528
|
||||
environment: edge-service
|
||||
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for tracing.
|
||||
# We recommend adjusting this value in production.
|
||||
tracesSampleRate: 1.0
|
||||
|
1
src/main/resources/sentry-debug-meta.properties
Normal file
1
src/main/resources/sentry-debug-meta.properties
Normal file
@@ -0,0 +1 @@
|
||||
584830D0-AEAE-453F-92F7-0E52346A3674
|
Reference in New Issue
Block a user