forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled Eventuate Tram distributed tracing
- Loading branch information
Showing
19 changed files
with
170 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.tasks.testing.Test | ||
|
||
class FtgoServicePlugin implements Plugin<Project> { | ||
|
||
@Override | ||
void apply(Project project) { | ||
|
||
project.apply(plugin: 'org.springframework.boot') | ||
project.apply(plugin: "io.spring.dependency-management") | ||
|
||
project.dependencyManagement { | ||
imports { | ||
mavenBom "org.springframework" + | ||
".cloud:spring-cloud-contract-dependencies:${project.ext.springCloudContractDependenciesVersion}" | ||
mavenBom "org.springframework.cloud:spring-cloud-sleuth:${project.ext.springCloudSleuthVersion}" | ||
} | ||
} | ||
|
||
|
||
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.eventuate.tram.core:eventuate-tram-spring-cloud-sleuth-integration:${project.ext.eventuateTramVersion}" | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
apply plugin: 'org.springframework.boot' | ||
apply plugin: FtgoServicePlugin | ||
|
||
|
||
dependencies { | ||
|
23 changes: 23 additions & 0 deletions
23
ftgo-accounting-service/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
spring.application.name=ftgo-accounting-service | ||
|
||
spring.jpa.generate-ddl=true | ||
logging.level.org.springframework.orm.jpa=INFO | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
logging.level.net.chrisrichardson.ftgo=DEBUG | ||
logging.level.io.eventuate.tram=TRACE | ||
spring.datasource.url=jdbc:mysql://${DOCKER_HOST_IP:localhost}/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver.class.name=com.mysql.jdbc.Driver | ||
spring.data.mongodb.uri=mongodb://${DOCKER_HOST_IP:localhost}/bankingexampledb | ||
|
||
eventuatelocal.kafka.bootstrap.servers=${DOCKER_HOST_IP:localhost}:9092 | ||
eventuatelocal.cdc.db.user.name=root | ||
eventuatelocal.cdc.db.password=rootpassword | ||
eventuatelocal.zookeeper.connection.string=${DOCKER_HOST_IP:localhost}:2181 | ||
|
||
aws.access.key_id=id_key | ||
aws.secret.access.key=access_key | ||
aws.dynamodb.endpoint.url=http://${DOCKER_HOST_IP:localhost}:8000 | ||
aws.region=us-west-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ftgo-consumer-service/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
spring.application.name=ftgo-consumer-service | ||
|
||
spring.jpa.generate-ddl=true | ||
logging.level.org.springframework.orm.jpa=INFO | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
logging.level.net.chrisrichardson.ftgo=DEBUG | ||
logging.level.io.eventuate.tram=TRACE | ||
spring.datasource.url=jdbc:mysql://${DOCKER_HOST_IP:localhost}/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver.class.name=com.mysql.jdbc.Driver | ||
|
||
eventuatelocal.kafka.bootstrap.servers=${DOCKER_HOST_IP:localhost}:9092 | ||
eventuatelocal.cdc.db.user.name=root | ||
eventuatelocal.cdc.db.password=rootpassword | ||
eventuatelocal.zookeeper.connection.string=${DOCKER_HOST_IP:localhost}:2181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
ftgo-kitchen-service/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
spring.application.name=ftgo-kitchen-service | ||
|
||
spring.jpa.generate-ddl=true | ||
logging.level.org.springframework.orm.jpa=INFO | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
logging.level.net.chrisrichardson.ftgo=DEBUG | ||
logging.level.io.eventuate.tram=TRACE | ||
spring.datasource.url=jdbc:mysql://${DOCKER_HOST_IP:localhost}/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver.class.name=com.mysql.jdbc.Driver | ||
spring.data.mongodb.uri=mongodb://${DOCKER_HOST_IP:localhost}/bankingexampledb | ||
|
||
eventuatelocal.kafka.bootstrap.servers=${DOCKER_HOST_IP:localhost}:9092 | ||
eventuatelocal.cdc.db.user.name=root | ||
eventuatelocal.cdc.db.password=rootpassword | ||
eventuatelocal.zookeeper.connection.string=${DOCKER_HOST_IP:localhost}:2181 | ||
|
||
aws.access.key_id=id_key | ||
aws.secret.access.key=access_key | ||
aws.dynamodb.endpoint.url=http://${DOCKER_HOST_IP:localhost}:8000 | ||
aws.region=us-west-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
ftgo-order-history-service/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
spring.application.name=ftgo-order-history-service | ||
|
||
spring.jpa.generate-ddl=true | ||
logging.level.org.springframework.orm.jpa=INFO | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
logging.level.net.chrisrichardson.ftgo=DEBUG | ||
logging.level.io.eventuate.tram=TRACE | ||
spring.datasource.url=jdbc:mysql://${DOCKER_HOST_IP:localhost}/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver.class.name=com.mysql.jdbc.Driver | ||
spring.data.mongodb.uri=mongodb://${DOCKER_HOST_IP:localhost}/bankingexampledb | ||
|
||
eventuatelocal.kafka.bootstrap.servers=${DOCKER_HOST_IP:localhost}:9092 | ||
eventuatelocal.cdc.db.user.name=root | ||
eventuatelocal.cdc.db.password=rootpassword | ||
eventuatelocal.zookeeper.connection.string=${DOCKER_HOST_IP:localhost}:2181 | ||
|
||
aws.access.key_id=id_key | ||
aws.secret.access.key=access_key | ||
aws.dynamodb.endpoint.url=http://${DOCKER_HOST_IP:localhost}:8000 | ||
aws.region=us-west-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
apply plugin: 'org.springframework.boot' | ||
apply plugin: FtgoServicePlugin | ||
|
||
|
||
dependencies { | ||
|
23 changes: 23 additions & 0 deletions
23
ftgo-restaurant-service/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
spring.application.name=ftgo-restaurant-service | ||
|
||
spring.jpa.generate-ddl=true | ||
logging.level.org.springframework.orm.jpa=INFO | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
logging.level.net.chrisrichardson.ftgo=DEBUG | ||
logging.level.io.eventuate.tram=TRACE | ||
spring.datasource.url=jdbc:mysql://${DOCKER_HOST_IP:localhost}/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver.class.name=com.mysql.jdbc.Driver | ||
spring.data.mongodb.uri=mongodb://${DOCKER_HOST_IP:localhost}/bankingexampledb | ||
|
||
eventuatelocal.kafka.bootstrap.servers=${DOCKER_HOST_IP:localhost}:9092 | ||
eventuatelocal.cdc.db.user.name=root | ||
eventuatelocal.cdc.db.password=rootpassword | ||
eventuatelocal.zookeeper.connection.string=${DOCKER_HOST_IP:localhost}:2181 | ||
|
||
aws.access.key_id=id_key | ||
aws.secret.access.key=access_key | ||
aws.dynamodb.endpoint.url=http://${DOCKER_HOST_IP:localhost}:8000 | ||
aws.region=us-west-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,3 @@ | ||
#! /bin/bash -e | ||
|
||
. ./set-env.sh | ||
|
||
KEEP_RUNNING= | ||
|
||
while [ ! -z "$*" ] ; do | ||
case $1 in | ||
"--keep-running" ) | ||
KEEP_RUNNING=yes | ||
;; | ||
"--help" ) | ||
echo ./run-end-to-end-tests.sh --keep-running --assemble-only | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
initializeDynamoDB() { | ||
./initialize-dynamodb.sh | ||
} | ||
|
||
|
||
./gradlew assemble | ||
|
||
docker-compose up -d --build dynamodblocal mysql | ||
|
||
./wait-for-mysql.sh | ||
|
||
echo mysql is started | ||
|
||
initializeDynamoDB | ||
|
||
docker-compose up -d --build | ||
|
||
date | ||
|
||
./wait-for-services.sh | ||
|
||
./gradlew :ftgo-end-to-end-tests:cleanTest :ftgo-end-to-end-tests:test | ||
|
||
./run-graphql-api-gateway-tests.sh | ||
|
||
if [ -z "$KEEP_RUNNING" ] ; then | ||
docker-compose down -v | ||
fi |