Skip to content

Commit

Permalink
Enhanced distributed tracing microservices-patterns#74
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Jan 29, 2020
1 parent bd223e6 commit 35ebbed
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/FtgoServicePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FtgoServicePlugin implements Plugin<Project> {
project.dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-sleuth'
compile 'org.springframework.cloud:spring-cloud-starter-zipkin'
compile 'io.zipkin.brave:brave-bom:4.17.1'
compile "io.zipkin.brave:brave-bom:4.17.1"

compile "io.eventuate.tram.core:eventuate-tram-spring-cloud-sleuth-integration:${project.ext.eventuateTramVersion}"
}
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ services:
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
EVENTUATE_DATABASE_SCHEMA: ftgo_kitchen_service
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-restaurant-service:
build: ./ftgo-restaurant-service
ports:
Expand All @@ -151,6 +154,9 @@ services:
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
EVENTUATE_DATABASE_SCHEMA: ftgo_restaurant_service
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-accounting-service:
build: ./ftgo-accounting-service
ports:
Expand All @@ -169,6 +175,9 @@ services:
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
EVENTUATE_DATABASE_SCHEMA: ftgo_accounting_service
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-delivery-service:
build: ./ftgo-delivery-service
ports:
Expand Down Expand Up @@ -208,6 +217,9 @@ services:
AWS_DYNAMODB_ENDPOINT_URL: http://dynamodblocal:8000
AWS_REGION: ${AWS_REGION:-us-west-2}
JAVA_OPTS: -Xmx192m
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-api-gateway:
build: ./ftgo-api-gateway
ports:
Expand Down
6 changes: 3 additions & 3 deletions ftgo-api-gateway/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-gateway'
compile "org.apache.commons:commons-lang3:3.6"

// compile 'org.springframework.cloud:spring-cloud-starter-sleuth'
//compile 'org.springframework.cloud:spring-cloud-starter-zipkin'
// compile 'io.zipkin.brave:brave-bom:4.17.1'
compile 'org.springframework.cloud:spring-cloud-starter-sleuth'
compile 'org.springframework.cloud:spring-cloud-starter-zipkin'
compile "io.zipkin.brave:brave-bom:4.17.1"

compile "io.micrometer:micrometer-registry-prometheus:$micrometerVersion"
compile "org.springframework.boot:spring-boot-starter-actuator"
Expand Down
1 change: 0 additions & 1 deletion ftgo-api-gateway/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ logging.level.com.github.tomakehurst.wiremock=TRACE
management.endpoints.web.exposure.include=health,prometheus

spring.sleuth.sampler.probability=1.0
spring.sleuth.web.skipPattern=(^health.*)

# routes
2 changes: 1 addition & 1 deletion ftgo-end-to-end-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
}

dockerCompose {

projectName = null
}

test.dependsOn(composeUp)

0 comments on commit 35ebbed

Please sign in to comment.