End is the clean-up API for gRPC Observability plugin. It is expected to be invoked in the main function of the application. The suggested usage is "defer observability.End()". This function also flushes data to upstream, and cleanup resources. Note: this method should only be invoked once.
()
| 87 | // |
| 88 | // Note: this method should only be invoked once. |
| 89 | func End() { |
| 90 | stopLogging() |
| 91 | stopOpenCensus() |
| 92 | } |