Commit Graph

44 Commits

Author SHA1 Message Date
Ahmet Alp Balkan a9e95bc05c
Move to go modules (#410)
Simplifies and modernizes the go build process.
Old vs new build times (without cache):

- frontend: 185s vs 33s.
- productcatalog: 190s vs 30s.
- shippingservice: 200s vs 36s.
- checkoutservice: 129s vs 27s.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2020-10-13 13:05:53 -07:00
keziasulami 65b5da1a9b
Fix multiply item price by quantity (#378) 2020-10-13 12:25:06 -07:00
Daniel Sanche c4d86703c5
Add licenses (#367) 2020-07-15 11:56:37 -07:00
Mmadu Manasseh 4d8848bc5e
Updated deps for exporter/jaeger (#282) 2020-04-13 15:23:46 -07:00
Megan O'Keefe 90f9287f3a
Adds option to disable Stackdriver Export (#293) 2020-02-20 15:26:44 -05:00
Megan O'Keefe 754d22a08f
Updates go services to google-cloud-go 0.40.0 (#234)
* Updates go services to google cloud go 0.40.0

* Revert kubernetes manifests, remove custom images

* Remove binary file, replace nil error with unimplemented

* Shippingservice needed status import

* Remove shippingservice binary
2019-07-09 16:57:50 -04:00
Yoshi Yamaguchi 1c057fcbd8 aligning function name and log message to the official product name (#229)
* 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

* align all function names and messages to the official product name "Stackdriver"
2019-06-13 00:46:33 -07:00
Pradip Caulagi 57b316c045 Update docker images for go to 1.12 (#203) 2019-04-01 10:50:44 -07:00
rghetia 2b074f7ff3
Add jaeger export to checkoutservice. (#116)
* Add jaeger export to checkoutservice.

* fix review comments.
2019-01-10 10:25:07 -08:00
rghetia d69f1a4f25 increase reporting interval. (#96)
also fixed a bug in SD export registration in Ads.
2018-11-14 11:49:17 -08:00
Ahmet Alp Balkan 3b6d3864a0
grpc: bump health-probe to v0.2.0 (#71)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-10-09 15:54:55 -07:00
sebright dc7effd601 adservice: find relevant ads by category (#61)
The ad service now returns ads matching the categories of the product that is
currently displayed.  Changes in this commit:

- List all products' categories in products.json.

- Pass the current product's categories from the frontend to the ad service when
  looking up ads.

- Store a statically initialized multimap from product category to ad in the ad
  service.

- Return all ads matching the given categories when handling an ads request.
  The ad service continues to return random ads when no categories are given or
  no ads match the categories.
2018-10-01 22:44:56 -07:00
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
Ahmet Alp Balkan 1bab006af1
grpc: implement health check in go services (#27)
Also locked grpc-go to =1.14 exact version.
See grpc/grpc-go#2314 and grpc/grpc-go#2313 for reference
2018-09-20 10:31:31 -07:00
rghetia fc6df2daea Remove monitored resource autodetect (#42) 2018-09-14 12:27:25 -07:00
rghetia 7f2ecfea9e Instrument Go service with Stats and monitored resources. (#30)
added default views for stats  for http and grpc in Go services only.
added monitored resources for go.
2018-08-24 16:30:50 -07:00
Ahmet Alp Balkan 427f13fcd3
go: use dep in builds, remove relative imports
Fixes #11.
Fixes #12.
Fixes #13.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-04 11:21:03 -07:00
Ahmet Alp Balkan 4572974c88
use dep to lock Go dependencies (without vendor/)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-30 19:18:05 -07:00
Ahmet Alp Balkan d0128060e4
Add LICENSE headers to source files
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-25 09:54:28 -07:00
Ahmet Alp Balkan b943dda1b7 go services: fix bug that starts profiling 3 times
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:36:17 -07:00
Ahmet Alp Balkan 5bb1a3f400 go services: do not fail (+retry) profiler init
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 11:45:09 -07:00
Ahmet Alp Balkan e4664c22ea refactor fix after profiler patch
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-16 15:17:59 -07:00
morganmclean 99ce1f84c2 Instrumented everything but Python 2018-07-16 14:29:14 -07:00
Ahmet Alp Balkan d08a58cc21 add retries for stackdriver exporters in go
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-13 15:44:56 -07:00
Ahmet Alp Balkan 555c8a4c05 frontend/checkoutservice: add tracing
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-12 10:46:43 -07:00
Ahmet Alp Balkan 61cf05844d fix go builds after deleting pkg internal
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-10 20:11:30 -07:00
JBD 4a82b21b5e add OpenCensus Go support for HTTP and gRPC 2018-07-10 17:36:55 -07:00
Ahmet Alp Balkan 4e57b1e0aa optimize dockerfile caching for go builds
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan 382314bb57 checkoutservice: empty cart after order
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan ed942a91fe checkoutservice: remove PrepareOrder rpc
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan 83333c9f6b k8s: cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:08 -07:00
Ahmet Alp Balkan 6f10ac9794 breaking changes to Address in proto
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:08 -07:00
Ahmet Alp Balkan 33fae5d1d1 checkoutservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:07 -07:00
Ahmet Alp Balkan a128ab02ef checkoutservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:07 -07:00
Ahmet Alp Balkan 289bd4db13 frontend: view cart, add to cart, empty cart
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 12:55:07 -07:00
Ahmet Alp Balkan 7d1d1d6614 checkoutservice: activate cartservice link
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 09:12:41 -07:00
Ahmet Alp Balkan 9deb87d62f remove unused .gitkeep
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 22:35:54 -07:00
Ahmet Alp Balkan 08144db10a checkoutservice prototype!!1
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 21:36:01 -07:00
Ahmet Alp Balkan 25dd31952c checkoutservice: change port to 5050
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:07:08 -07:00
Ahmet Alp Balkan 28956fb240 unify ENTRYPOINTS in dockerfiles (no /bin/sh)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:03:04 -07:00
Ahmet Alp Balkan 4ade7ddb29 remove -v from go-build dockerfiles
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 12:40:07 -07:00
Ahmet Alp Balkan f06818db0c checkoutservice: partial implementation
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 12:15:53 -07:00
Ahmet Alp Balkan 164e52fa44 checkoutservice: add code stubs, TODO implement
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 11:44:47 -07:00
Ahmet Alp Balkan bdd32edae6 Add src dirs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-13 14:26:55 -07:00