chore: upgrade otel, removed ut temporarily because of otel API changes (#3795)

This commit is contained in:
Kevin Wan
2023-12-17 12:26:48 +08:00
committed by GitHub
parent 431f9af43e
commit 83a776a190
3 changed files with 3 additions and 6 deletions

View File

@@ -31,10 +31,7 @@ func init() {
dumpGoroutines(fileCreator{})
case syscall.SIGUSR2:
profiler := StartProfile()
go func() {
<-time.After(profileDuration)
profiler.Stop()
}()
time.AfterFunc(profileDuration, profiler.Stop)
case syscall.SIGTERM:
stopOnSignal()
gracefulStop(signals, syscall.SIGTERM)

View File

@@ -50,7 +50,7 @@ func (sg *ServiceGroup) Add(service Service) {
// Also, quitting this method will close the logx output.
func (sg *ServiceGroup) Start() {
proc.AddShutdownListener(func() {
logx.Info("Shutting down service in group")
logx.Info("Shutting down services in group")
sg.stopOnce()
})