Add an experimental API that exports metrics proto synchronously (#178)

* Add an experimental API that exports metrics proto synchronously

* Fix gofmt
2 files changed