1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00

Update main.go

This commit is contained in:
Stefan Prisca 2020-05-08 14:34:29 +02:00 committed by GitHub
parent c6c841fc7c
commit a27a37ee34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,12 +18,7 @@ func main() {
if err != nil {
log.Fatalf("Failed to create the collector exporter: %v", err)
}
if err = exp.GetLastConnectError(); err != nil {
log.Fatalf("Failed to create the collector exporter: %v", err)
}
defer func() {
_ = exp.Stop()
}()
@ -49,6 +44,4 @@ func main() {
<-time.After(6 * time.Second)
iSpan.End()
}
// exp.ExportSpan(ctx, span)
}