Commit Graph

24 Commits

Author SHA1 Message Date
Megan O'Keefe 90f9287f3a
Adds option to disable Stackdriver Export (#293) 2020-02-20 15:26:44 -05:00
Megan O'Keefe 04b2084779
[WIP] Fixes emailservice CrashLoop when Workload Identity is enabled (#280)
* Adds explicit PROJECT_ID for stackdriver exporter

* save work

* cleanup
2019-12-17 13:41:59 -05:00
Kalyana Chadalavada 86fb1662a3 Add Stackdriver Profiler Python agent (#176)
* Add Stackdriver Profiler Python agent to EmailService and
RecommendationService

* Update recommendation_server.py

* Moved Profiler init to a function

* Moved Profiler init to a function

* Delete key.json

* Delete key.json

* Delete key.json
2019-05-03 10:29:34 -07:00
Chris Kleinknecht 5272a4d821 Re-enable opencensus python (#103)
Enables tracing in the email and recommendation services, which was disabled in 316db88 because of a memory leak in the stackdriver exporter.

We fixed the leak in https://github.com/googleapis/google-cloud-python/pull/6856. The fix is included in the [0.1.10 release of opencensus-python](https://github.com/census-instrumentation/opencensus-python/releases/tag/v0.1.10).

With this diff, traces show up as expected in stackdriver while running the demo on GKE. Using an `opencensus-python` package version before `0.1.10` causes the email and recommendation services to leak memory until they OOM. Memory use is back to normal (i.e. roughly constant) using the new package version.
2018-12-11 16:15:51 -08:00
Yoshi Yamaguchi 7f40378ecc log: change log format to JSON payload for better log in Stackdriver (#66)
change the log format in Python and Node.js services.

Effected services are currencyservice, emailservice, paymentservice,
and recommendationservice. Loadgenerator is left as is because of
the diffculty to change the log format and log target in locust.

ref. #47
2018-10-05 11:23:45 -07:00
Ahmet Alp Balkan 880ee16be2
grpc: add health checks to python services (#28)
also converted line endings for recommendationservice/requirements.txt from
dos to unix.
2018-09-19 12:34:56 -07:00
Ahmet Alp Balkan c8aed3e804
recommendationservice: add import traceback
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-30 10:48:46 -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 316db889aa recomendationservice: disable tracing b/c memleak
enabling the tracing interceptor/sampler causes an unbounded memory leak
eventually OOMing the container.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:49:27 -07:00
Ahmet Alp Balkan cca50463ee recommendationservice: add init message
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 08:39:23 -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 9486bc24fd Fixed recommendations instrumentation 2018-07-16 14:34:22 -07:00
morganmclean 6e1bbe46e2 partly fixed python 2018-07-16 14:29:14 -07:00
morganmclean 99ce1f84c2 Instrumented everything but Python 2018-07-16 14:29:14 -07:00
Ahmet Alp Balkan 9889e4904d recommendationservice: exclude input ids
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:05 -07:00
Ahmet Alp Balkan 1372aad813 recommendationservice: require PRODUCT_CATALOG_SERVICE_ADDR
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 10:22:28 -07:00
Dan Sanche 61291a5105 regenerated protos 2018-06-20 23:53:23 -07:00
Dan Sanche 933a05205f pull ids from product catalog service 2018-06-20 23:26:32 -07:00
Dan Sanche c753f9a6ff added product catalog address env var 2018-06-20 22:37:56 -07:00
Dan Sanche 0cf418df99 recommender now returns ids instead of products 2018-06-14 16:10:11 -07:00
Dan Sanche 8375b4b1e2 added ports to script arguments 2018-06-14 15:52:41 -07:00
Dan Sanche 62153ef88e added client 2018-06-14 15:31:06 -07:00
Dan Sanche 9c6f36c605 added implementation of server 2018-06-14 12:45:44 -07:00
Dan Sanche 0844d37872 added protobuffs 2018-06-14 12:30:50 -07:00