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:
parent
c6c841fc7c
commit
a27a37ee34
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user