Skip to content

Commit d887322

Browse files
committed
Print project ID to stdout on exporter creation
1 parent 8c67785 commit d887322

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opencensus/metrics_quickstart.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def main():
5353
# Create the Stackdriver stats exporter and start exporting metrics in the
5454
# background, once every 60 seconds by default.
5555
exporter = stats_exporter.new_stats_exporter()
56+
print('Exporting stats to project "{}"'
57+
.format(exporter.options.project_id))
5658

5759
# Record 100 fake latency values between 0 and 5 seconds.
5860
for num in range(100):

0 commit comments

Comments
 (0)