partly fixed python
This commit is contained in:
parent
4c8fa307a5
commit
6e1bbe46e2
2 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,7 @@ WORKDIR /home
|
||||||
RUN apt-get update && apt-get install python3-pip -y
|
RUN apt-get update && apt-get install python3-pip -y
|
||||||
RUN pip install opencensus
|
RUN pip install opencensus
|
||||||
RUN pip install google-python-cloud-debugger
|
RUN pip install google-python-cloud-debugger
|
||||||
|
RUN pip install google-cloud-trace
|
||||||
|
|
||||||
# set listen port
|
# set listen port
|
||||||
ENV PORT "8080"
|
ENV PORT "8080"
|
||||||
|
|
|
@ -6,9 +6,9 @@ import time
|
||||||
import random
|
import random
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# from opencensus.trace.ext.grpc import server_interceptor
|
from opencensus.trace.ext.grpc import server_interceptor
|
||||||
# from opencensus.trace.samplers import always_on
|
from opencensus.trace.samplers import always_on
|
||||||
# from opencensus.trace.exporters import stackdriver_exporter
|
from opencensus.trace.exporters import stackdriver_exporter
|
||||||
|
|
||||||
class RecommendationService(demo_pb2_grpc.RecommendationServiceServicer):
|
class RecommendationService(demo_pb2_grpc.RecommendationServiceServicer):
|
||||||
def ListRecommendations(self, request, context):
|
def ListRecommendations(self, request, context):
|
||||||
|
|
Loading…
Reference in a new issue