1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-03-03 14:52:56 +02:00

Merge branch 'otel-collector-demo' of github.com:stefanprisca/opentelemetry-go into otel-collector-demo

This commit is contained in:
Stefan Prisca 2020-05-11 09:28:40 +02:00
commit 7b5aa0c6e3

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)
}