From a27a37ee34674e50375e6420450a7b3f2bc62fb6 Mon Sep 17 00:00:00 2001 From: Stefan Prisca Date: Fri, 8 May 2020 14:34:29 +0200 Subject: [PATCH] Update main.go --- example/otel-collector/main.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/example/otel-collector/main.go b/example/otel-collector/main.go index f65489430..5a1b1558c 100644 --- a/example/otel-collector/main.go +++ b/example/otel-collector/main.go @@ -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) }