Commit graph

209 commits

Author SHA1 Message Date
Ahmet Alp Balkan
1799f36dc6 shippingsercice: export traces to stackdriver
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-11 19:55: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
morganmclean
88b29516fb Added node.js client tracing 2018-07-11 15:40:38 -07:00
morganmclean
59430d5854 Added node.js tracing 2018-07-11 15:19:17 -07:00
Ahmet Alp Balkan
af71f8f9b0 frontend: refactor http.Handler decoration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-10 21:49:06 -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
Simon Zeltser
7101b6b4fe Changing the order of redis and cart service starting
This should help monitoring probe for cart service to succeed at first run
2018-07-09 21:02:27 -07:00
Ahmet Alp Balkan
0be5e7b1e2 cartservice: rm initContainer, fix probe query ip
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-09 12:56:54 -07:00
Ahmet Alp Balkan
0c1068aec6 cartservice: add an exec probe written in Go
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-07 16:56:52 -07:00
Ahmet Alp Balkan
684c6020cb frontend: whitelist currencies two more currencies
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-03 12:10:52 -07:00
Ahmet Alp Balkan
0b192fa95c frontend: small fixes for form controls
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-03 09:56:42 -07:00
Ahmet Alp Balkan
6c8d06428f frontend: recommendations widget is responsive
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 16:34:21 -07:00
Ahmet Alp Balkan
96ffafe0c5 frontend: error tpl invokes header/footer with vals
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 16:16:30 -07:00
Ahmet Alp Balkan
2f5cbd5eee frontend: add footer (session id + request id)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 16:11:58 -07:00
Ahmet Alp Balkan
6a5ba2a51d frontend: fix checkout form mb
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 15:44:25 -07:00
Ahmet Alp Balkan
39169ca498 frontend: remove footer text
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 15:20:23 -07:00
Simon Zeltser
d457f7ec28 Making cartservice more reliable
1. Making sure we re-create redis connection upon disconnect
2. Fixed local cart store implementation to handle updates (useful for testing w/o redis)
3. Fixed windows scripts to work against redis correctly
2018-07-02 13:26:37 -07:00
Simon Zeltser
11c208a9f4 Merge remote-tracking branch 'origin' into createCartService 2018-07-02 13:25:34 -07:00
Ahmet Alp Balkan
85d04fc0b5 frontend: proper ensureSess middleware, add req id
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 10:13:02 -07:00
Ahmet Alp Balkan
2dcd7b6221 frontend: remove sessionid from log
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 10:00:10 -07:00
Ahmet Alp Balkan
b7404e3500 frontend: use logrus structured logger
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-01 21:21:26 -07:00
Ahmet Alp Balkan
257cbdf98b loadgenerator: complete implementation
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 17:10:28 -07:00
Ahmet Alp Balkan
08aa1cce26 shippingservice: add logs indicating rpc calls
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 16:37:01 -07:00
Ahmet Alp Balkan
8c3d36d81e loadgenerator prototype
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 16:37:01 -07:00
Ahmet Alp Balkan
ab045ae6e7 currencyservice: change port to 7000
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 13:45:03 -07:00
Simon Zeltser
989fad7f76 Merge remote-tracking branch 'origin' into createCartService 2018-06-29 11:41:08 -07:00
Simon Zeltser
17ffcb9a6e Merge conflict fix for redis cache exception handling 2018-06-29 11:16:10 -07:00
Ahmet Alp Balkan
84ff69147e frontend: use pkg/errors, show full stacktrace
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:11 -07:00
Ahmet Alp Balkan
307404714b cartservice: add try catch to GetCartAsync
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:10 -07:00
Ahmet Alp Balkan
977c2e5ffd cartservice: dockerfile optimizations
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:10 -07:00
Ahmet Alp Balkan
92274f4ff4 frontend: optimize dockerfile
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:10 -07:00
Simon Zeltser
f2ee88a9a2 Changed redis connection opening to be synchronous call
Also added exception handling for GetCartAsync
2018-06-29 11:08:10 -07:00
Ahmet Alp Balkan
86b45cd8ff currencyservice: less logs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:10 -07:00
Ahmet Alp Balkan
e3a9580c76 frontend: add liveness/readiness probes
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:10 -07:00
Simon Zeltser
4ac66b072a Refactored the cart service to add more telemetry
1. Added more telemetry around starting redis cache
2. Now if you don't specify redis cache address via command line
or environment variable, it will run with local cart (no redis).
This is useful for debugging purposes
2018-06-29 11:08:10 -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
e2c48c58d7 frontend/handlers: wrap err
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan
b68f6a0324 k8s: add frontend dockerfile + skaffold
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan
878be040e4 cartservice: add net-tools to build
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan
6c8162eb3d k8s: fix emailservice port mapping
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
8d1d967d93 frontend: also log error
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan
3089712084 frontend: error page
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:09 -07:00
Ahmet Alp Balkan
91493bf0a3 frontend: order result screen
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
6040585996 fix cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:08 -07:00
Simon Zeltser
edf1553be9 Renaming cart service env vars
Renaming Cart service environment variables:
CART_SERVICE_ADDR => LISTEN_ADDR
CART_SERVICE_PORT => PORT
2018-06-29 11:08:08 -07:00
Ahmet Alp Balkan
0d07d08b4a frontend: place order
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:08 -07:00