MCPcopy
hub / github.com/grpc/grpc-go / End

Function End

gcp/observability/observability.go:89–92  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

87//
88// Note: this method should only be invoked once.
89func End() {
90 stopLogging()
91 stopOpenCensus()
92}

Callers 9

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
StartFunction · 0.70
TestJSONEnvVarSetMethod · 0.70

Calls 2

stopLoggingFunction · 0.85
stopOpenCensusFunction · 0.85

Tested by 4

TestJSONEnvVarSetMethod · 0.56