@@ -144,8 +144,6 @@ The **Azure Monitor Metrics Exporter** allows you to export metrics to `Azure Mo
144144
145145.. code :: python
146146
147- import time
148-
149147 from opencensus.ext.azure import metrics_exporter
150148 from opencensus.stats import aggregation as aggregation_module
151149 from opencensus.stats import measure as measure_module
@@ -179,10 +177,6 @@ The **Azure Monitor Metrics Exporter** allows you to export metrics to `Azure Mo
179177 mmap.measure_int_put(CARROTS_MEASURE , 1000 )
180178 mmap.record(tmap)
181179 # Default export interval is every 15.0s
182- # Your application should run for at least this amount
183- # of time so the exporter will meet this interval
184- # Sleep can fulfill this
185- time.sleep(60 )
186180
187181 print (" Done recording metrics" )
188182
@@ -236,8 +230,6 @@ Modifying Metrics
236230
237231.. code :: python
238232
239- import time
240-
241233 from opencensus.ext.azure import metrics_exporter
242234 from opencensus.stats import aggregation as aggregation_module
243235 from opencensus.stats import measure as measure_module
@@ -276,10 +268,6 @@ Modifying Metrics
276268 mmap.measure_int_put(CARROTS_MEASURE , 1000 )
277269 mmap.record(tmap)
278270 # Default export interval is every 15.0s
279- # Your application should run for at least this amount
280- # of time so the exporter will meet this interval
281- # Sleep can fulfill this
282- time.sleep(60 )
283271
284272 print (" Done recording metrics" )
285273
0 commit comments