Skip to content

Commit

Permalink
leave insecure setting to otlp client lib
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli committed Feb 10, 2023
1 parent fedeb4c commit b311fd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/hotrod/pkg/tracing/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b311fd4

Please sign in to comment.