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:
commit
7b5aa0c6e3
@ -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…
x
Reference in New Issue
Block a user