add stackdriver

This commit is contained in:
kimscott
2020-01-09 13:51:22 +09:00
parent 8370588b2e
commit e8e0d80012
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

@@ -77,6 +77,12 @@
<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

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