census-instrumentation / opencensus-go

A stats collection and distributed tracing framework
http://opencensus.io
Apache License 2.0
2.05k stars 327 forks source link

Adds an exported function to flush interval reader #1248

Closed quentin-cha closed 3 years ago

quentin-cha commented 3 years ago

This is a quick fix (bit hacky) to get me closer to fixing https://github.com/census-ecosystem/opencensus-go-exporter-stackdriver/issues/43, by providing an exported function on IntervalReader to flush its content.

It doesn't change any existing behavior of IntervalReader, it only adds a way for the owner of IntervalReader to flush its content when needed.

dashpole commented 3 years ago

whoops. one more comment, then i'll merge

quentin-cha commented 3 years ago

Thank you so much your help!