We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6bd1e commit 750ce8fCopy full SHA for 750ce8f
main.go
@@ -197,7 +197,7 @@ func main() {
197
// Force a flush of any pending spans
198
shutdownCtx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
199
defer cancel()
200
- if err := tp.ForceFlush(shutdownCtx); err != nil {
+ if err := tp.Shutdown(shutdownCtx); err != nil {
201
log.Errorf("Error flushing spans: %v", err)
202
} else {
203
log.Info("Spans successfully flushed")
0 commit comments