From b311fd457c9f947e2206adf3abfdcda61e803b0a Mon Sep 17 00:00:00 2001 From: Gil Raphaelli Date: Fri, 10 Feb 2023 12:51:40 -0500 Subject: [PATCH] leave insecure setting to otlp client lib --- examples/hotrod/pkg/tracing/init.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/hotrod/pkg/tracing/init.go b/examples/hotrod/pkg/tracing/init.go index b21b0b06865..6fc0f209d5e 100644 --- a/examples/hotrod/pkg/tracing/init.go +++ b/examples/hotrod/pkg/tracing/init.go @@ -81,10 +81,10 @@ func createOtelExporter(exporterType string) (sdktrace.SpanExporter, error) { jaeger.WithCollectorEndpoint(), ) case "otlp": - client := otlptracehttp.NewClient( - otlptracehttp.WithInsecure(), + exporter, err = otlptrace.New( + context.Background(), + otlptracehttp.NewClient(), ) - exporter, err = otlptrace.New(context.Background(), client) case "stdout": exporter, err = stdouttrace.New() default: