microservices-demo/src/adservice
sebright d08d419a94 adservice: use Stackdriver special field to set sampling decision in log entries (#168)
This commit sets the new sampling decision field that is recognized by the
Stackdriver Logging agent, "logging.googleapis.com/traceSampled".  The sampling
decision field was added in
https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/pull/297, and
it won't be available until the new version of fluent-plugin-google-cloud is
used in GKE.
2019-02-28 22:34:57 -07:00
..
gradle/wrapper Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
src/main adservice: use Stackdriver special field to set sampling decision in log entries (#168) 2019-02-28 22:34:57 -07:00
.gitignore Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
Dockerfile Fixing ./gradlew: Permission denied problem on Dockerfile (#146) 2019-02-15 08:22:48 -08:00
README.md Update README.md 2018-10-22 10:03:38 -07:00
build.gradle Updates deps, OC instrumentation, formatting. (#131) 2019-01-30 13:35:03 -08:00
genproto.sh Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
gradlew Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
gradlew.bat Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
settings.gradle Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00

README.md

Ad Service

The Ad service provides advertisement based on context keys. If no context keys are provided then it returns random ads.

Building locally

The Ad service uses gradlew to compile/install/distribute. Gradle wrapper is already part of the source code. To build Ad Service, run:

./gradlew installDist

It will create executable script src/adservice/build/install/hipstershop/bin/AdService

Upgrading gradle version

If you need to upgrade the version of gradle then run

./gradlew wrapper --gradle-version <new-version>

Building docker image

From the repository root, run:

docker build --file src/adservice/Dockerfile .