GoogleCloudPlatform/opentelemetry-cloud-run

Add SIGTERM/SIGINT handler for graceful shutdown

Closed this issue · 0 comments

The Go program should add SIGTERM handler to shutdown the SDK. Right now it will just be ungracefully shutdown by Go's default SIGTERM handler, which means telemetry won't be flushed. See https://cloud.google.com/run/docs/samples/cloudrun-sigterm-handler