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.
This commit is contained in:
parent
cb241e197d
commit
5272a4d821
6 changed files with 47 additions and 52 deletions
|
@ -13,7 +13,7 @@ RUN apk add --update --no-cache \
|
|||
# App Deps
|
||||
cairo-dev \
|
||||
cairo \
|
||||
openssl-dev \
|
||||
openssl-dev \
|
||||
gobject-introspection-dev
|
||||
|
||||
# get packages
|
||||
|
@ -42,4 +42,4 @@ RUN apk add --no-cache libstdc++
|
|||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT [ "python", "email_server.py" ]
|
||||
ENTRYPOINT [ "python", "email_server.py" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue