microservices-demo/src/shippingservice
Yoshi Yamaguchi 6460427bee Change log format to JSON and log destination to stdout (#48)
* log: change log format to JSON payload for better log in Stackdriver

change the log format in Go written service from text payload to
JSON payload using 3rd party logging library (logrus).

https://cloud.google.com/logging/docs/structured-logging
33a1e118e1/json_formatter.go (L40-L49)

Effected services are frontend, productcatalogservice, checkoutservice,
and shippinservice.

Also change target container registry and locust scenario for testing.

* revert kubernetes manifests to point to the original container registry URLs

* revert skaffold.yaml to point to the original registry

* loadgenerator: revert locust settings
2018-09-25 16:43:17 -07:00
..
genproto breaking changes to Address in proto 2018-06-27 15:51:33 -07:00
.dockerignore go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
Dockerfile grpc: implement health check in go services (#27) 2018-09-20 10:31:31 -07:00
genproto.sh Add more license headers 2018-07-25 21:25:27 -07:00
Gopkg.lock Change log format to JSON and log destination to stdout (#48) 2018-09-25 16:43:17 -07:00
Gopkg.toml Change log format to JSON and log destination to stdout (#48) 2018-09-25 16:43:17 -07:00
main.go Change log format to JSON and log destination to stdout (#48) 2018-09-25 16:43:17 -07:00
quote.go Change log format to JSON and log destination to stdout (#48) 2018-09-25 16:43:17 -07:00
README.md go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
shippingservice_test.go go: use dep in builds, remove relative imports 2018-08-04 11:21:03 -07:00
tracker.go Add more license headers 2018-07-25 21:25:27 -07:00

Shipping Service

The Shipping service provides price quote, tracking IDs, and the impression of order fulfillment & shipping processes.

Local

Run the following command to restore dependencies to vendor/ directory:

dep ensure --vendor-only

Build

From repository root, run:

docker build --file src/shippingservice/Dockerfile .

Test

go test .