add stackdriver

This commit is contained in:
kimscott
2020-01-09 13:51:22 +09:00
parent 6b6120aa2a
commit 8674d36714
3 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM openjdk:8u212-jdk-alpine
FROM openjdk:8u212-jdk
COPY target/*SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-Xmx400M","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar","--spring.profiles.active=docker"]

View File

@@ -69,6 +69,12 @@
<artifactId>spring-cloud-starter-contract-verifier</artifactId>
<scope>test</scope>
</dependency>
<!-- Add Stackdriver Trace Starter -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gcp-starter-trace</artifactId>
</dependency>
</dependencies>
<dependencyManagement>

View File

@@ -45,6 +45,11 @@ server:
---
spring:
profiles: docker
sleuth:
sampler:
probability: 1
web:
skipPattern: (^cleanup.*|.+favicon.*)
cloud:
stream:
kafka: