https://signoz.io logo
#support
Title
# support
a

ankit verma

05/20/2023, 10:10 PM
Hello Everyone, Am trying to setup SigNoz locally, the system is starting fine, but when adding trace in golang service getting error " 2023/05/21 025832 traces export: the client is shutdown "
p

Prashant Shahi

05/22/2023, 9:51 AM
@Vishal Sharma can you look into this?
v

Vishal Sharma

05/22/2023, 10:15 AM
Looks like issue with instrumentation, how did you instrument? @ankit verma
m

ma bo

08/15/2023, 12:33 PM
hi ankit , clenup should not run before main ending. If you put it the wrong position such as a func inside main(), it may run after func runed. So you should put the cleanup code in main function.
cleanup := logger.InitTracer()
defer func() { err := cleanup(context.Background()) if err != nil { logger.Error(errors.Wrap(err, 2).ErrorStack()) } }()
2 Views