Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit f294d25

Browse files
authored
stdout exporters: force a flush after each batch. (#258)
1 parent ae131d5 commit f294d25

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

opencensus/exporters/stats/stdout/internal/stdout_exporter.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void Handler::ExportViewData(
8787
break;
8888
}
8989
}
90+
stream_->flush();
9091
}
9192

9293
template <typename DataValueT>

opencensus/exporters/trace/stdout/internal/stdout_exporter.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Handler : public ::opencensus::trace::exporter::SpanExporter::Handler {
3636
for (const auto& span : spans) {
3737
*stream_ << span.DebugString() << "\n";
3838
}
39+
stream_->flush();
3940
}
4041

4142
private:

0 commit comments

Comments
 (0)