Skip to content

Commit 7eae753

Browse files
authored
Fixed imports to match latest opencensus structure (GoogleCloudPlatform#2192)
1 parent db4b00c commit 7eae753

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

trace/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
# [START trace_setup_python_configure]
23-
from opencensus.trace.exporters import stackdriver_exporter
23+
from opencensus.ext.stackdriver import trace_exporter as stackdriver_exporter
2424
import opencensus.trace.tracer
2525

2626

trace/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
google-cloud-trace==0.20.2
2-
opencensus==0.2.0
1+
google-cloud-trace==0.21.0
2+
opencensus==0.6.0
3+
opencensus-ext-stackdriver==0.4.0
34
Flask==1.0.2

0 commit comments

Comments
 (0)