cleanup
This commit is contained in:
parent
95576bb02b
commit
66ac346bbd
2 changed files with 3 additions and 3 deletions
|
@ -34,8 +34,6 @@ spec:
|
|||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
- name: GCP_PROJECT_ID
|
||||
value: "thinmint"
|
||||
- name: ENABLE_PROFILER
|
||||
value: "0"
|
||||
readinessProbe:
|
||||
|
|
|
@ -37,7 +37,9 @@ import googlecloudprofiler
|
|||
|
||||
try:
|
||||
sampler = always_on.AlwaysOnSampler()
|
||||
exporter = stackdriver_exporter.StackdriverExporter()
|
||||
exporter = stackdriver_exporter.StackdriverExporter(
|
||||
project_id=os.environ.get('GCP_PROJECT_ID'),
|
||||
transport=AsyncTransport)
|
||||
tracer_interceptor = server_interceptor.OpenCensusServerInterceptor(sampler, exporter)
|
||||
except:
|
||||
tracer_interceptor = server_interceptor.OpenCensusServerInterceptor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue