Commit graph

47 commits

Author SHA1 Message Date
Daniel Sanche
c4d86703c5
Add licenses (#367) 2020-07-15 11:56:37 -07:00
Megan O'Keefe
814088f788
Rebrand Hipstershop as OnlineBoutique (#328)
* update productcatalog, frontend, readme

* revert productcatalog

* restore currency logic and ad display

* footer cleanup

* Resize header image

* screenshots

* Center align header image in readme

* Show platform flag on every page

* style fixes

* fix currency in UI, remove extra USD

* cart bug, fixing

* attempt to fix breaking build

* fix cart size in handler

* replace images

* # items in cart is total quantity

* Add link to 0.1.4 manifests in readme
2020-04-23 14:12:30 -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
Abhilash Gnan
55f5061532 Use env in service manifests for PORT (#212)
* fix shipping service ports

* fix product catalog servicde ports

* fix paymentservice ports

* fix currenservice ports

* fix checkoutservice ports

* fix emailservice ports

* fix frontend app ports

* fix recommendationservice ports

* fix indentation in service yaml files
2019-05-08 19:39:14 -07:00
Pradip Caulagi
57b316c045 Update docker images for go to 1.12 (#203) 2019-04-01 10:50:44 -07:00
Megan O'Keefe
1d045de655 productcatalog: introduce configurable latency (#134) 2019-01-29 16:08:24 -08:00
rghetia
54f0a8d058 add jaeger support for productcatalog and shipping. (#126) 2019-01-22 09:56:39 -08:00
Théo Chamley
c91dca764f Toggle bug in ProductCatalogService for demos (#85)
Fixes #84.
2018-12-17 11:06:49 -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
sebright
86c8c06cc1 pb: add "categories" field to Product (#60)
This field can be used as the context keys to look up relevant ads in the ad
service.

/cc @rghetia 

I also ran the genproto.sh scripts for the Java and Go services and included those changes in the second commit.  I encountered an issue when I ran genproto.sh for the recommendation service, and I'm still looking into it.
2018-10-01 21:33:25 -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
3493cc1cb4
Add more license headers
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-25 21:25:27 -07:00
Ahmet Alp Balkan
f149cc050b productcatalogservice: fix build
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:50:54 -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
d5394b4041 productcatalog: read products from json, fix tests
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:24:59 -07:00
morganmclean
dbc9523cea Changed product catalog to use json, so that it slows down and generates nice profiles 2018-07-17 21:35:11 -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
a3740aa7b5 shippingservice: add ca-certificates to image
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-13 16:17:47 -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
d01f525453 refactor initTrace -> initTracing()
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-13 10:47:42 -07:00
Ahmet Alp Balkan
89618dbeb6 payment & productcatalog: sample rate 1.0
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-12 10:22:36 -07:00
Ahmet Alp Balkan
6065e871a9 productcatalog: export traces to stackdriver
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-11 19:19:00 -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
7e732dee6c productcatalog: regenerate protos
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:06 -07:00
Ahmet Alp Balkan
8a6be04035 productcatalog: longer product IDs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 22:47:21 -07:00
Ahmet Alp Balkan
4ccf44582f frontend/productservice: add product inventory
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 21:51:48 -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
c9525d8e06 regenerate go protos after breaking change
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-20 17:00:52 -07:00
Ahmet Alp Balkan
2316e25504 change Product.id to string
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-20 12:20:39 -07:00
Ahmet Alp Balkan
810a74a463 productcatalogservice: add Dockerfile
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-19 23:04:28 -07:00
Jonathan Amsterdam
9c1d009e39 remove .gitgkeep 2018-06-16 09:39:49 -04:00
Jonathan Amsterdam
914f07f307 productcatalogservice: implementation 2018-06-16 09:37:11 -04:00
Jonathan Amsterdam
9af0ca0eda add productcatalogservice dir 2018-06-15 07:53:47 -04:00