Skip to content

Commit 9c7da8e

Browse files
authored
Updated periodic_exporting_metric_reader
Replaced early returns with breaks in PeriodicExportingMetricReader::DoBackgroundWork to fix worker_thread_instrumentation_ behavior.
1 parent 0db608e commit 9c7da8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/metrics/export/periodic_exporting_metric_reader.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void PeriodicExportingMetricReader::DoBackgroundWork()
151151
#endif /* ENABLE_THREAD_INSTRUMENTATION_PREVIEW */
152152
if(IsShutdown())
153153
{
154-
return;
154+
break;
155155
}
156156
}
157157

0 commit comments

Comments
 (0)